CAPECattack pattern

CAPEC-253 Remote Code Inclusion

Official page ↗
Abstraction
Standard
Status
Draft
CAPEC version
3.9

Description

The attacker forces an application to load arbitrary code files from a remote location. The attacker could use this to try to load old versions of library files that have known vulnerabilities, to load malicious files that the attacker placed on the remote machine, or to otherwise change the functionality of the targeted application in unexpected ways.

Prerequisites

• Target application server must allow remote files to be included.The malicious file must be placed on the remote machine previously.

Mitigations

• Minimize attacks by input validation and sanitization of any user data that will be used by the target application to locate a remote file to be included.

Related

Can precede · CAPEC (1)

  • CAPEC-664 Server Side Request Forgery attack pattern

Child of · CAPEC (1)

Weakness · CWE (1)

  • CWE-829 Inclusion of Functionality from Untrusted Control Sphere weakness

Referenced by CAPEC · child of (3)

  • CAPEC-101 Server Side Include (SSI) Injection attack pattern
  • CAPEC-193 PHP Remote File Inclusion attack pattern
  • CAPEC-500 WebView Injection attack pattern

Referenced by CWE · attack pattern (1)

  • CWE-829 Inclusion of Functionality from Untrusted Control Sphere weakness