CWE-548 · Słabość
Exposure of Information Through Directory Listing
- Abstrakcja
- Wariant
- Status
- Szkic
- Dodano
- 19 lipca 2006
- Ostatnia zmiana
- 30 kwietnia 2026
Opis
The product inappropriately exposes a directory listing with an index of all the resources located inside of the directory.
Skutki
Confidentiality
Read Files or Directories
Exposing the contents of a directory can lead to an attacker gaining access to source code or providing useful information for the attacker to devise exploits, such as creation times of files or any information that may be encoded in file names. The directory listing may also compromise private or confidential data.
Zapobieganie
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.
Przykłady podatności
- CVE-2023-37599 web interface is configured to allow directory listing of a module path
Słabość nadrzędna
Kiedy powstaje
- Implementation
- Operation
Dotyczy
Not Language-Specific
Źródła
- Directory Indexing — Web Application Security Consortium, 2009
- Directory indexing attacks — IBM, 2021
Wpis z katalogu CWE 4.20.