|
|||||||||||
|
RE: Lazy sanitizing of data for SQL queries
From: Brass, Phil (ISS Atlanta) <PBrass(at)iss.net>
Date: Fri Jan 24 2003 - 15:36:14 EST
Also, integer fields would have to be stored in the database as encoded text. Again, it may be possible to encode the integer values such that they sort correctly, but then every query tool is going to need to know how to do this.
While there are really no good "lazy" solutions to SQL injection,
probably the best "lazy" way I know of is to convert your ad-hoc
concatenated queries to prepared statement queries, and this will only
work under the following conditions:
This kind of thing still doesn't protect you from attempts to access unauthorized data. For example, if you've got a database of everybody's orders, and the user should only be allowed to access their order, you need to make sure the user can't submit, for example, a "view order" request with somebody else's order number, thus gaining unauthorized access. Phil > -----Original Message-----
This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:07:48 EDT |
||||||||||
|
|||||||||||