News for hackers. Stuff that matters.
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?
Re:Security Vulnerabilities in Heroku by jstanley on Wednesday January 09, 2013 @01:45PM (#5032689)
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.
Re:Security Vulnerabilities in Heroku by scriby on Wednesday January 09, 2013 @03:59PM (#5033482)
Depends on the flavor of SQL. But also, might not be a totally missing where clause, but just an incomplete one.