Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 1.03 KB

PHP-Info-Page-Disclosure.md

File metadata and controls

35 lines (23 loc) · 1.03 KB

PHP info page disclosure

Summary

The phpinfo() is a debug functionality that prints out detailed information on both the system and the PHP configuration.

URLs

Impact

An attacker can obtain information such as:

• Exact PHP version (7.3.28) • Exact SO version (Debian) • Kernel headers (4.9.0-13-amd64) • Kernel binary (4.9.228-1) • Server usernames (XXX) • Details of the PHP configuration.
• Installed modules
• Server environment variables.
• Loaded PHP extensions and their configurations. • Master and local values of configuration options • HTTP headers • PHP License.

This information can help an attacker gain more information on the system. After gaining detailed information, the attacker can research known vulnerabilities for that system under review. The attacker can also use this information during the exploitation of other vulnerabilities.

Supporting Material/References:

https://hackerone.com/reports/165930 https://www.php.net/manual/en/function.phpinfo.php