logoalt Hacker News

d4mi3n • yesterday at 4:41 PM • 2 replies • view on HN

There's a reason why SQL injections are consistently in the OWASP top 10. Even with a well governed project, mistakes happen. Add to this that not every project has the budget for a static analysis tool (Semgrep, CodeQL, etc) and the volume of AI generated changes and you have a perfect storm of software defects to keep the classic vulnerabilities alive and well.


Replies

nradov • yesterday at 5:02 PM

Even the free static analysis tools have been pretty good at catching SQL injection vulnerabilities for years now. There is no plausible excuse for this type of mistake.

IshKebab • yesterday at 5:16 PM

> Even with a well governed project, mistakes happen.

A well governed project would structurally eliminate this class of bugs. Especially in 2026, even stupid AI can detect the use of non-static query strings. If you use a sane language like Rust even the compiler can enforce this. You don't need any separate static analysis tools. Python, C++ and even Go can do this too (although sadly its default SQL library doesn't).

"Mistakes happen" is not an excuse in this case.

> not every project has the budget for a static analysis tool (Semgrep, CodeQL, etc)

Both of those are free for open source projects! If you're putting a freaking medical records platform out there without even basic free security checking, I would say that is shockingly irresponsible.

➕ show 1 reply