Skip to content
Info disclosure Disclosed report Beginner

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.

odaysec Follow

Originally disclosed on HackerOne

  • 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

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.

The original report as published on HackerOne, by odaysec. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. Visit the target scope at https://h2f54.n1.ips.mtn.co.ug
  2. Use a tool like Burp Suite Intruder to find sensitive directories
  3. Discover a directory containing info.php
  4. Open https://h2f54.n1.ips.mtn.co.ug/dashboard/phpinfo.php in a browser
  5. 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.

More by odaysec

View all

6 more disclosed reports, best first.

More from MTN Group

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.