|
|||||||||||
|
Re: Strange beaviour in sql injection
From: Mariusz Pekala <skoot(at)poczta.onet.pl>
Date: Sat Nov 30 2002 - 15:26:20 EST
Dennis Hurst (wto 29. pa¼dziernik 2002 15:06):
Why not using a regular expression on raw request data? /^[0-9]{1,8}$/ (or similiar, depends on language of the application) should ensure that you'r dealing with numeric. (integer, if that's what you need). I may be wrong, or may not understand it all, but I would rather not trust functions that convert. They sometimes ignore/modify/guess. If I check that the string my webapp received contains only numbers, and not more than 9, then I may be SURE that there is no SQL injection here. (Be gentle if I am saying something stupid or didn't understood what was going on :-))) ) Received on Sat Nov 30 18:26:31 2002 This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:07:44 EDT |
||||||||||
|
|||||||||||