Re:Security Vulnerabilities in Heroku
by jiggy2011 on Wednesday January 09, 2013 @01:34PM
(#5032640)
Presumably though the where clause would be there if you are taking the user id from the request vars in order for the code to work at all?
[ Parent
| on HN ]
If you build the query at runtime based on whichever arguments are available, it is quite easy for missing arguments to slip through to the inner query generator and end up with a blank where clause.
Re:Security Vulnerabilities in Heroku
by jiggy2011 on Wednesday January 09, 2013 @01:49PM
(#5032718)
a blank where clause throws an error (in mySQL at least) as it should do. Or will the query generator respond to missing arguments by removing the where clause altogether? In which case that's some pretty nasty behaviour.