|
|||||||||||
|
RE: JDBC PreparedStatements, Java Data Objects/O-R mapping, and SQL Injection
From: Christopher Todd <chris(at)christophertodd.com>
Date: Tue Dec 31 2002 - 15:29:39 EST
Of course, you are absolutely correct that all user input should be validated, and if it were validated perfectly and reliably, we would have no need for any other security measures to protect the application or its data stores. But defense in depth is a mantra for a reason - the programmer who wrote the validation routines may have screwed up, failed to account for something, etc. Furthermore, it is not uncommon for people's names to contain apostrophes or hyphens, and some folks get mad when you take those out of their names just because your programmer thinks he's being clever and removes those "dangerous" characters in the name of defeating SQL injection. Aside from that, I am not writing the section of the Guide on input validation, someone else has already done that. Chris > -----Original Message-----
This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:07:46 EDT |
||||||||||
|
|||||||||||