CAPEC™ 242: Code Injection

Description

An adversary exploits a weakness in input validation on the target to inject new code into that which is currently executing. This differs from code inclusion in that 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.

Source: CAPEC™ 242

ASVS (5.0): 1.1.1, 1.1.2, 1.2.1, 1.2.10, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.2.6, 1.2.7, 1.2.8, 1.2.9, 1.3.1, 1.3.10, 1.3.11, 1.3.12, 1.3.2, 1.3.3, 1.3.4, 1.3.5, 1.3.6, 1.3.7, 1.3.8, 1.3.9, 1.4.1, 1.4.2, 1.4.3, 1.5.1, 1.5.2, 1.5.3, 10.4.7, 15.1.1, 15.1.2, 15.1.4, 15.1.5, 15.2.1, 15.2.4, 15.2.5, 16.3.3, 16.4.1, 3.1.1, 3.2.1, 3.2.2, 3.2.3, 3.4.3, 3.4.6, 3.4.7, 3.5.4, 3.5.5, 3.5.6, 3.5.7, 3.6.1, 3.7.1, 3.7.2, 3.7.3, 3.7.4, 3.7.5, 5.1.1, 5.2.2, 5.3.1, 5.3.2, 5.4.1, 5.4.2, 5.4.3

Github logo View source on GitHub

OWASP Cornucopia

OWASP Cornucopia is a mechanism in the form of a card game to assist software development teams identify security requirements in Agile, conventional and formal development processes. It is language, platform and technology-agnostic, and is free to use. OWASP Cornucopia is licensed under the Creative Commons Attribution-ShareAlike 4.0 license, so you can copy, distribute and transmit the work, and you can adapt it, and use it commercially, but all provided that you attribute the work and if you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar licence to this one.

© 2012-2025 OWASP Foundation. The Open Worldwide Application Security Project (OWASP) is a nonprofit foundation that works to improve the security of software.