Leakage of sensitive information with 'phpinfo' function

  • 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