These vulnerabilities might seem simple, but I saw them many times when I performed source code review. I hope this sheds some light on simple but dangerous vulnerabilities, they can be prevented by programmers that are focused on secure programming. Granted, it takes some time to understand it for some, but it is worth it. Because, somewhere down the road it will be exploited by someone with more time than you have to program the code. If you consider to write code that is released for free and to a great audience, please remember that you have to make sure that it is secure for those who use it. There is simply no excuse to make such mistakes, especially when your code previously had SQL injection vulnerabilities and proposed the above code as your fix. Everyone makes mistakes, over time I had my fair share also. But that doesn't mean that one shouldn't stay wary of these things.
