Skip to content
vetkitChecksChangelogDocumentation

vetkit.php.info-disclosure.phpinfo

phpinfo() output is generated by application code. It exposes the full PHP configuration, server paths and environment variables (often including secrets).

Last updated:

Suite: Security

php

phpinfo() output is generated by application code. It exposes the full PHP configuration, server paths and environment variables (often including secrets).

Category: SECURITY · Engine rule severity: WARNING

How to fix it

Remove phpinfo() pages from deployable code; inspect configuration from the CLI instead.

Rule pattern example

The engine’s matching pattern, not a confirmed exploit. Metavariables and ellipses describe matching syntax.

phpinfo(...)

References

Source: packages/engine/rules/sast/php.yml.

Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.