1. Don't hand-write boilerplate SQL but use a library (CLSQL, JPA) where possible.
2. Use parameterized queries rather than pasting strings together.
3. There is no step 3. Seriously, it's not hard.
21–22 of 22 posts
2. Use parameterized queries rather than pasting strings together.
3. There is no step 3. Seriously, it's not hard.
Earlier quoted context omitted.
Exactly. I'd like to know how to check my personal site and some of our sites at work to see if they are vulnerable or not.
Do they use prepared statements? If not, they are almost certainly vulnerable.
It is almost impossible to fuck up prepared statements, so although they take longer to write it is a good way to secure a website.