phpsafe 𝕏 GitHub
Official CA 421DTkQ3TSG3n7F9SkNZj9NxvdFGbypwkctPd2uupump This is the only official address.

Debug output of request data

Severity: Low CWE-215 OWASP A05:2021 Security Misconfiguration rule: debug

Why it matters

Dumping request data can print passwords, tokens and internal structure to anyone who triggers the page.

βœ• Vulnerable
var_dump($_POST);
βœ“ Secure
// Remove debug output before deploying.
// While debugging, log only what you need:
error_log('fields: ' . implode(',', array_keys($_POST)));

How to fix

Remove var_dump/print_r of request data before deploying.

Scan my code

Paste a file and PHP Safe points to every line that matches this rule.

Scan my code β†’