Unauthenticated phpinfo()files could lead to ability file read at h2f54.n1.ips.mtn.co.ug [/dashboard/]
An unauthenticated phpinfo.php file was publicly accessible on the target server, exposing detailed PHP configuration and server environment information. An attacker could use this information to plan further attacks against the web server.
- Triaged in 55 days
- Fixed in 6 months
- Disclosed after 7 months
Summary
Many PHP installation tutorials instruct the user to create a PHP file that calls the PHP function 'phpinfo()' for debugging purposes, and various PHP applications may also include such a file by default. By accessing it, a remote attacker can discover a large amount of information about the remote web server configuration to help conduct further attacks, including :
- root/vps of the web server, operating system and PHP components
- Details of the PHP configuration
- Loaded PHP extensions with their configurations
- Server environment variables.
Proof On Concepts: https://h2f54.n1.ips.mtn.co.ug/dashboard/phpinfo.php
Windows NT SUNSVR 6.3 build 9600 (Windows Server 2012 R2 Datacenter Edition) AMD64
Steps to Reproduce
- Visit the target scope is https://h2f54.n1.ips.mtn.co.ug
- You can used
burp-suite-intruderfor finding sensitive directory - And now we found a directory is
info.php - Let's see opened in our browser is directory https://h2f54.n1.ips.mtn.co.ug/dashboard/phpinfo.php
- You can see this page can be view without authenticate
Suggested Mitigation/Remediation Actions
Remove the affected file(s). http://php.net/manual/en/function.phpinfo.php
Impact
The remote web server contains a PHP script that is prone to an information disclosure attack.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a leftover debugging file (phpinfo.php) was not removed from the production server.
Impact
The exposed phpinfo page could reveal server configuration details that help an attacker conduct further attacks.
What the attacker needed
None
The fix
The affected file(s) should be removed.
How it was found
- Visit the target scope at https://h2f54.n1.ips.mtn.co.ug
- Use a tool like Burp Suite Intruder to find sensitive directories
- Discover a directory containing info.php
- Open https://h2f54.n1.ips.mtn.co.ug/dashboard/phpinfo.php in a browser
- Observe that the page is viewable without authentication
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A phpinfo.php file is a debugging page that PHP developers sometimes leave on a server. It shows lots of technical details about how the server is set up, such as the operating system and installed software. Anyone who finds this page can read those details, which helps them plan other attacks.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.