HexBrain

U.S. Department of State · Report #1822665

Impact of Using the PHP Function "phpinfo()" on System Security - PHP info page disclosure

Validstatus
lowseverity
13upvotes
18 May 2023disclosed

How it was found

Summary:

phpinfo() is a debug functionality that prints out detailed information on both the system and the PHP configuration. This function can reveal sensitive information such as the exact PHP version, operating system and its version, internal IP addresses, server environment variables, and loaded PHP extensions and their configurations. An attacker can use this information to research known vulnerabilities for the system and potentially exploit other vulnerabilities.

Steps To Reproduce:

  1. Access the address https://rewardsforjustice.net/phpinfo.php

Remediation Guidance

To remediate this issue, you should remove the phpinfo() function from your code, or ensure that it is only accessible to trusted individuals. Additionally, you should ensure that your server environment variables are not accessible to unauthorized users.

Supporting Material/References:

[list any additional material (e.g. screenshots, logs, etc.)]

Impact

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.

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original