Data Exposure
SQL Query Exposure Check
Learn how SQL queries or database credentials can be exposed in HTML code and measures to protect your critical data.
What this test checks
This test checks whether SQL queries or database connection information are exposed in your site's HTML code. Accidental exposure can reveal your database structure, credentials, or allow an attacker to prepare an SQL injection. This risk is critical as it exposes the integrity of your data.
Our recommendation
Ensure SQL queries and connection information are never present in HTML code. Use prepared statements (PDO) and environment variables for credentials. Enable error display only in development (not production) and use logs for debugging.
Security tests