Skip to content
StrikeOps

Directory Listing Enabled

LowTypical severity Web applications and APIsCWE-548

01Description

The web server returned automatically generated listings of directory contents where no index file was present.

02Impact

Directory listings reveal file names and structure, and often expose files never intended to be public, such as backups, logs, configuration files and uploaded documents.

03Severity

Typically

Low

Typically Low. Low unless the listed directories expose backups, source code, credentials or personal data, in which case rate it by what is exposed.

04How to verify

  1. 1Browse to directories without index files, such as upload, backup and asset folders.
  2. 2Record directories that return listings and any sensitive files exposed.
  3. 3Check for common backup and archive file names.

Testing note: only test systems you are authorized to test, within the agreed scope and rules of engagement. Verification steps are written for professional testers and avoid destructive techniques.

05Remediation

  1. 1Disable directory listing in the web server configuration (for example Options -Indexes in Apache or autoindex off in nginx).
  2. 2Remove backups and unneeded files from web-accessible locations.

06References

Draft findings like this from your own evidence

Book a demo
Book a demo