sql-injection

SQL injection prevention with unsafe and safe query patterns

I teach SQL injection by showing the vulnerable pattern first and then replacing it with parameterized queries. The important point is that escaping is not a strategy and string interpolation is not acceptable anywhere user input reaches SQL. I also p

Parameterized queries in Python with psycopg

Even outside ORMs, parameterized database access needs to be the default habit. The query string should describe structure while the driver binds user values separately. That sounds basic, but it is still where too many internal tools quietly fail sec

sqlmap workflow for approved injection testing

Automated SQL injection testing is useful when it is tightly scoped and coordinated. I keep requests reproducible, use captured traffic as the starting point, and avoid reckless options that create unnecessary blast radius. Tools are not the problem h