Spotting the Sin Pattern

Any application that has the following pattern is at risk of SQL injection:

  • Takes user input

  • Does not check user input for validity

  • Uses user-input data to query a database

  • Uses string concatenation or string replacement to build the SQL query or uses the SQL exec command (or similar)



19 Deadly Sins of Software Security. Programming Flaws and How to Fix Them
Writing Secure Code
ISBN: 71626751
EAN: 2147483647
Year: 2003
Pages: 239

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net