Exposure of Sensitive Information to an Unauthorized Actor.

  • Rule ID: php_lang_phpinfo
  • Languages: php
  • Source: phpinfo.yml

Description

Avoid exposing sensitive information to an unautorized actor.

Remediations

❌ Avoid exposing sensitive information:

phpinfo();

Associated CWE

OWASP Top 10

Configuration

To skip this rule during a scan, use the following flag

bearer scan /path/to/your-project/ --skip-rule=php_lang_phpinfo

To run only this rule during a scan, use the following flag

bearer scan /path/to/your-project/ --only-rule=php_lang_phpinfo

Ready to take the next step? Learn more about Bearer Cloud.