CAPECattack pattern
CAPEC-175 Code Inclusion
Very High
Official page ↗
- Abstraction
- Meta
- Status
- Stable
- Likelihood of attack
- Medium
- Typical severity
- Very High
- CAPEC version
- 3.9
Description
An adversary exploits a weakness on the target to force arbitrary code to be retrieved locally or from a remote location and executed. This differs from code injection in that code injection involves the direct inclusion of code while code inclusion involves the addition or replacement of a reference to a code file, which is subsequently loaded by the target and used as part of the code of some application.
Prerequisites
• The target application must include external code/libraries that are executed when the application runs and the adversary must be able to influence the specific files that get included.
• The victim must run the targeted application, possibly using the crafted parameters that the adversary uses to identify the code to include.
Related
Weakness · CWE (1)
- CWE-829 Inclusion of Functionality from Untrusted Control Sphere weakness
Referenced by CAPEC · can follow (1)
- CAPEC-234 Hijacking a privileged process attack pattern
Referenced by CAPEC · child of (2)
Referenced by CWE · attack pattern (1)
- CWE-829 Inclusion of Functionality from Untrusted Control Sphere weakness