Skip to main content

Use parameterized queries

Summary

The system must use parameterized queries or stored procedures to create dynamic sentences (e.g., java.sql.PreparedStatement).

Description

One of the main reasons for using parameterized queries or stored procedures is to prevent SQL injection attacks. When applications concatenate user input directly into SQL statements, attackers may inject malicious SQL code, potentially leading to unauthorized access or data manipulation. Parameterized queries ensure that user input is treated as data, not as executable code, mitigating the risk of SQL injection.

Supported In

This requirement is verified in following services

PlanSupported
Machine🟢
Squad🟢

References

Vulnerabilities

free trial

Search for vulnerabilities in your apps for free with our automated security testing! Start your 21-day free trial and discover the benefits of our Continuous Hacking Machine Plan. If you prefer a full service that includes the expertise of our ethical hackers, don't hesitate to contact us for our Continuous Hacking Squad Plan.