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

phpinfo() exposes server details

Severity: Medium CWE-200 OWASP A05:2021 Security Misconfiguration rule: phpinfo

Why it matters

phpinfo() reveals the PHP version, file paths, loaded modules and environment variables: a map attackers use to choose their exploit.

βœ• Vulnerable
// info.php
phpinfo();
βœ“ Secure
// Delete info.php from production.
// Check settings from the command line instead:
//   php -i | grep display_errors

How to fix

Remove phpinfo() from anything reachable in production.

Scan my code

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

Scan my code β†’