CWE-548: Information Leak Through Directory Listing
Information Leak Through Directory Listing
Weakness ID: 548 (Weakness Variant)
Status: Draft
Description
Description Summary
A directory listing is inappropriately exposed, yielding
potentially sensitive information to attackers.
Extended Description
A directory listing provides an attacker with the complete index of all
the resources located inside of the directory. The specific risks and
consequences vary depending on which files are listed and accessible. Such
an exposure can lead to an attacker gaining access to source code, providing
useful information for the attacker to devise exploits. The directory
listing may also compromise private or confidential data.
Time of Introduction
Implementation
Operation
Potential Mitigations
Phase
Description
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.