Information Disclosure

Find sensitive data leaked through error messages, debug pages, and misconfigurations.

Reference5 steps5 tools

Methodology

  1. 1Check for verbose error messages
  2. 2Look for debug/admin endpoints
  3. 3Review source code comments and metadata
  4. 4Check backup files and version control
  5. 5Analyze HTTP headers and response differences

Detailed Steps

Trigger errors by:

  • Submitting unexpected data types
  • Leaving required fields empty
  • Submitting extremely long strings
  • Using special characters (`, ', ", <, >, etc.)
  • Requesting non-existent resources

Look for:

  • Stack traces (technology, framework, file paths)
  • Database errors (connection strings, query details)
  • Internal IP addresses
  • Software versions
  • Full file paths

Common debug endpoints:

shell
/debug
/console
/phpinfo.php
/server-status
/server-info
/.env
/actuator (Spring Boot)
/actuator/health
/actuator/env
/api/debug
/trace
/elmah.axd (.NET)

Check robots.txt and sitemap.xml:

shell
/robots.txt → may reveal hidden paths
/sitemap.xml → complete URL listing
/.well-known/

Backup files:

shell
/index.php.bak
/index.php~
/index.php.old
/index.php.swp
/.index.php.swp
/config.php.bak
/web.config.old

Version control:

shell
/.git/HEAD
/.git/config
/.svn/entries
/.svn/wc.db
/.hg/
/.bzr/

Download .git:

bash
git-dumper http://target/.git/ output-dir

Source code comments:

shell
View source → search for:
<!-- TODO, FIXME, HACK, password, secret, key, token, api -->

Revealing headers:

shell
Server: Apache/2.4.49
X-Powered-By: PHP/7.4.3
X-Debug-Token: abc123
X-AspNet-Version: 4.0.30319
Via: 1.1 proxy.internal.corp
X-Backend-Server: web03.internal

Check response headers with curl:

bash
curl -I http://target.com
curl -v http://target.com 2>&1 | grep -i "server\|x-powered\|x-debug"

Check different HTTP methods:

bash
curl -X OPTIONS http://target.com -v
curl -X TRACE http://target.com -v
bash
# Gobuster
gobuster dir -u http://target -w /usr/share/wordlists/dirb/common.txt

# ffuf  
ffuf -w /usr/share/wordlists/common.txt -u http://target/FUZZ

# Dirsearch
dirsearch -u http://target -e php,html,js,txt

# Check for common sensitive files
curl http://target/.env
curl http://target/config.yml
curl http://target/database.yml
curl http://target/wp-config.php
curl http://target/web.config
curl http://target/crossdomain.xml

Tools

Burp Suitegobusterffufdirsearchgit-dumper

References

© 2026. For authorized testing and education only.

Use only against systems you own or have permission to test.