1 Web Server Auto-Index Exposure
When a web server receives a request for a directory URL without a default index file (index.html, index.php), it may list the directory contents — exposing backup files, configuration files, source code, and sensitive data.
What directory listing reveals:
- Backup files:
config.php.bak,database.sql - Source code not meant to be public
- Configuration files:
.env,web.config - Log files with system information
- User-uploaded files that should be access-controlled
How to detect:
GET /uploads/ HTTP/1.1
# If directory listing is enabled, server returns HTML with file list:
Index of /uploads/
user-passport-scan.pdf
salary-report-2023.xlsx
internal-project-specs.docxAutomated scanners and web crawlers actively look for directories without index files to trigger listing. This is a common finding in penetration tests.