CWE-548: Exposure of Information Through Directory Listing
Variant
The product inappropriately exposes a directory listing with an index of all the resources located inside of the directory.
Consequences
- Confidentiality: Read Files or Directories
How to prevent it
- Architecture and Design, System Configuration: Recommendations include restricting access to important directories or files by adopting a need to know requirement for both the document and server root, and turning off features such as Automatic Directory Listings that could expose private files and provide information that could be utilized by an attacker when formulating or conducting an attack.
Recent advisories
- GHSA-mxw3-3hh2-x2mh — Rack has a Directory Traversal via Rack:Directory
- GHSA-c5cj-xp43-qcc3 — Moodle's error handling leads to sensitive information disclosure
- GHSA-5f9h-9pjv-v6j7 — Directory traversal in Rack::Directory app bundled with Rack
MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.
Check your repos with MergeHarbor