CWE-548 — Exposure of Information Through Directory Listing
CWE-548: Exposure of Information Through Directory Listing
MITRE CWE weakness
| Kind | Weakness |
| Abstraction | Variant |
| Status | Draft |
| Likelihood of exploit | — |
Description
The product inappropriately exposes a directory listing with an index of all the resources located inside of the directory.
Common consequences
- Confidentiality: Read Files or Directories
Mitigations
Architecture and Design — 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.
References
- CWE page: https://cwe.mitre.org/data/definitions/548.html
- CWE list: https://cwe.mitre.org/data/index.html