This site is the archived OWASP Foundation Wiki and is no longer accepting Account Requests.
To view the new OWASP Foundation website, please visit https://owasp.org
Query Parameterization
From OWASP
This page has been tagged and needs review. Please help OWASP and document the reason for this, see FixME.
This article is a stub. You can help OWASP by expanding it or discussing it on its Talk page.
This is a control. To view all control, please see the Control Category page.
Description
Query parameterization refers to the process of building database queries in application code in a specialized way. Query parameterization first defines all static SQL code, and then passes in each parameter to the query in a separate section of code. This coding style allows the database to distinguish between code and data, regardless of what user input is supplied, and successfully defends against SQL Injection.
Examples
Related Threats
Related Attacks
- SQL Injection
- Code Injection
- XPATH Injection
- Interpreter Injection
- Comment Injection Attack
- Argument Injection or Modification
- Cross-site Scripting (XSS)
- Cross Site History Manipulation (XSHM)
- Regular expression Denial of Service - ReDoS
- Cross Site Tracing