- What is CAPEC-6?
- An attacker changes the behavior or state of a targeted application through injecting data or command syntax through the targets use of non-validated and non-filtered arguments of exposed services or methods.
- How does a Argument Injection attack work?
- It typically unfolds over 3 phases. It begins with: [Discovery of potential injection vectors] Using an automated tool or manual discovery, the attacker identifies services or methods with arguments that could potentially be used as injection vectors (OS, API, SQL procedures, etc.).
- How do you prevent CAPEC-6?
- Design: Do not program input values directly on command shell, instead treat user input as guilty until proven innocent. Build a function that takes user input and converts it to applications specific types and values, stripping or filtering out all unauthorized commands and characters in the process.
- What weaknesses does CAPEC-6 target?
- CAPEC-6 exploits 6 CWE weaknesses, including CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')), CWE-78 (Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')), CWE-146 (Improper Neutralization of Expression/Command Delimiters), CWE-184 (Incomplete List of Disallowed Inputs).
- How severe is CAPEC-6?
- MITRE rates CAPEC-6 as High severity with high likelihood of attack.