Innovative way to combat SQL injection
homebank.sactocu.org
homebank.sactocu.org
This presents its own problems, if for some reason in the future they need to add one of these missing functions to the servers access, and don't recognise that they need to add the check as well.
But anyway, it is great to see the boss' nephew getting some work.
What it does is generate stupid alarms and break pageflows when you have an improperly configured web filter.
You could do the same thing with any application, secure or not, by applying a naive mod_security configuration to your Apache server.
That's not a great practice, but it doesn't tell you anything about how susceptible they are to SQLI.
clueless<-------------------->cluefull
^
|
Right about here I'd say.http://thedailywtf.com/Articles/Injection_Rejection.aspx
We where laughing our asses of. My name and the name of the other in-house guy, both contain an 'and'. Just our boss, could login and had no problem. :)
if (preg_match('/\s['.implode('|',$badSqlCode).']+\s/i', $sqlcode))
They probably didn't realize this wouldn't catch any of the bad terms at the very start or end of their code, though :-)After they got a handful of calls about it, they had to put it in their FAQ.
Sorry, I just killed the joke.