News for hackers. Stuff that matters.
Re:How not to protect against SQL injection (view source) by Joeri on Wednesday March 30, 2011 @01:18PM (#2388193)
About this case specifically, you're right. This person wrote some dumb code. However...

It is indeed unreasonable to expect a junior developer to make form submission secure. Aside from SQL injection there's DoS, MiTM, CSRF, XSS, session fixation, cache poisoning, clickjacking, timing attacks (to detect valid vs invalid values), rainbow table attacks, and many more. Just go through the list of requirements in OWASP ASVS. It's intimidating how much stuff there is to keep track of. We have a dedicated security engineer on our team who reviews all new code, out of necessity.

Also, about SQL being a bad API, I didn't say it was a bad API in general, just bad for the web. SQL is like eval(), it evaluates code from a parsed string. If eval() is bad for the web, SQL is just as bad.

Re:How not to protect against SQL injection (view source) by quattrofan on Wednesday March 30, 2011 @05:15PM (#2389284)
If indeed it was a junior developer then where was the supervision? I take your point on SQL though.