News for hackers. Stuff that matters.
Re:Exploiting hard filtered SQL Injections by eli on Sunday March 21, 2010 @08:59PM (#1208987)
and if you were determined to use a regex, wouldn't you create a whitelist pattern (i.e. just numbers) rather than a blacklist (no quotes, whitespace, etc)?
Re:Exploiting hard filtered SQL Injections by tptacek on Sunday March 21, 2010 @09:37PM (#1209043)
Yes. Better yet: if your parameter is numeric (say, a LIMIT), typecast it to an integer (to_i, int(), etc).