CAPEC-108: Command Line Execution through SQL Injection

ID CAPEC-108
Typical Severity Very High
Likelihood Of Attack Low
Status Draft

An attacker uses standard SQL injection methods to inject data into the command line for execution. This could be done directly through misuse of directives such as MSSQL_xp_cmdshell or indirectly through injection of data into the database that would be interpreted as shell commands. Sometime later, an unscrupulous backend application (or could be part of the functionality of the same application) fetches the injected data stored in the database and uses this data as command line arguments without performing proper validation. The malicious data escapes that data plane by spawning new commands to be executed on the host.

https://capec.mitre.org/data/definitions/108.html

Weaknesses

# ID Name Type
CWE-20 Improper Input Validation weakness
CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') weakness
CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') weakness
CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') weakness
CWE-114 Process Control weakness
Loading...