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

Difference between revisions of "Top 10 2010-A1-Injection"

From OWASP
Jump to: navigation, search
Line 1: Line 1:
 
{{Top_10_2010:TopTemplate|usenext=NextLink|next=-Broken Authentication and Session Management|useprev=PrevLink|prev=-Cross Site Request Forgery|usemain=MainLink|main=}}  
 
{{Top_10_2010:TopTemplate|usenext=NextLink|next=-Broken Authentication and Session Management|useprev=PrevLink|prev=-Cross Site Request Forgery|usemain=MainLink|main=}}  
  
{{Top_10_2010:SubsectionTemplate|Am I Vulnerable to Injection?|
+
{{Top_10_2010:SubsectionVulnerableTemplate|Injection|
blah
+
The best way to find out if an application is vulnerable to injection is to verify that all use of interpreters clearly separates untrusted data from the command or query. For SQL calls, this means using bind variables in all prepared statements and stored procedures, and avoiding dynamic queries.
blah
+
 
blah
+
Checking the code is a fast and accurate way to see if the application uses interpreters safely. Code analysis tools can help a security analyst find the use of interpreters and trace the data flow through the application. Manual penetration testers can confirm these issues by crafting exploits that confirm the vulnerability.
more
+
 
and  
+
Automated dynamic scanning which exercises the application may provide insight into whether some exploitable injection problems exist. Scanners cannot always reach interpreters and can have difficulty detecting whether an attack was successful.
more
 
yada
 
yada
 
yad blah
 
blah
 
blah
 
more
 
and  
 
more
 
yada
 
yada
 
yad blah
 
blah
 
blah
 
more
 
and  
 
more
 
yada
 
yada
 
yad blah
 
blah
 
blah
 
more
 
and  
 
more
 
yada
 
yada
 
yad blah
 
blah
 
blah
 
more
 
and  
 
more
 
yada
 
yada
 
yad blah
 
blah
 
blah
 
more
 
and
 
more
 
yada
 
yada
 
yad blah
 
blah
 
blah
 
more
 
and
 
more
 
yada
 
yada
 
yad
 
 
}}
 
}}
 
== Example Attack Scenario  ==
 
== Example Attack Scenario  ==

Revision as of 21:30, 13 April 2010

NOTE: THIS IS NOT THE LATEST VERSION. Please visit the OWASP Top 10 project page to find the latest edition.

««««
Top 10 Introduction
Top 10 Risks
»»»»

Am I Vulnerable to Injection?

The best way to find out if an application is vulnerable to injection is to verify that all use of interpreters clearly separates untrusted data from the command or query. For SQL calls, this means using bind variables in all prepared statements and stored procedures, and avoiding dynamic queries.

Checking the code is a fast and accurate way to see if the application uses interpreters safely. Code analysis tools can help a security analyst find the use of interpreters and trace the data flow through the application. Manual penetration testers can confirm these issues by crafting exploits that confirm the vulnerability.

Automated dynamic scanning which exercises the application may provide insight into whether some exploitable injection problems exist. Scanners cannot always reach interpreters and can have difficulty detecting whether an attack was successful.

Example Attack Scenario

How Do I Prevent XSS?

References

Related Articles

References


««««
Top 10 Introduction
Top 10 Risks
»»»»

© 2002-2010 OWASP Foundation This document is licensed under the Creative Commons Attribution-ShareAlike 3.0 license. Some rights reserved. CC-by-sa-3 0-88x31.png