CWE-89 - Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
- 摘要:Base
- 结构:Simple
- 状态:Stable
- 发布日期:2006-07-19
- 更新日期:2025-12-11
名称
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
描述
The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.
常见后果
范围:Confidentiality, Integrity, Availability
影响:Execute Unauthorized Code or Commands
注释:Adversaries could execute system commands, typically by changing the SQL statement to redirect output to a file that can then be executed.
范围:Confidentiality
影响:Read Application Data
注释:Since SQL databases generally hold sensitive data, loss of confidentiality is a frequent problem with SQL injection vulnerabilities.
范围:Authentication
影响:Gain Privileges or Assume Identity, Bypass Protection Mechanism
注释:If poor SQL commands are used to check user names and passwords or perform other kinds of authentication, it may be possible to connect to the product as another user with no previous knowledge of the password.
范围:Access Control
影响:Bypass Protection Mechanism
注释:If authorization information is held in a SQL database, it may be possible to change this information through the successful exploitation of a SQL injection vulnerability.
范围:Integrity
影响:Modify Application Data
注释:Just as it may be possible to read sensitive information, it is also possible to modify or even delete this information with a SQL injection attack.