Skip to content
vetkitChecksChangelogDocumentation

vetkit.php.sql-injection.string-building

Request input is concatenated or interpolated into a SQL query (SQL injection). An attacker can read or modify arbitrary database rows.

Last updated:

Suite: Security

php

Request input is concatenated or interpolated into a SQL query (SQL injection). An attacker can read or modify arbitrary database rows.

Category: SECURITY · Engine rule severity: ERROR

How to fix it

Use PDO / mysqli prepared statements with bound parameters.

References

Source: packages/engine/rules/sast/php.yml.

Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.