HexBrain

MTN Group · Report #2610478

Unauthenticated phpinfo()files could lead to ability file read at h2f54.n1.ips.mtn.co.ug [/dashboard/]

Validstatus
mediumseverity
33upvotes
20 Feb 2025disclosed

How it was found

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.

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