Skip to main content

CWE-548: Exposure of Information Through Directory Listing

VariantDraft

The product inappropriately exposes a directory listing with an index of all the resources located inside of the directory.

View on MITRE
Back to CWE Lookup

Technical Details

Structure
Simple

Applicable To

Languages
Platforms

Frequently Asked Questions

What is CWE-548: Exposure of Information Through Directory Listing?+

CWE-548: Exposure of Information Through Directory Listing is a Common Weakness Enumeration (CWE) entry maintained by MITRE. The product inappropriately exposes a directory listing with an index of all the resources located inside of the directory.

What are the security consequences of Exposure of Information Through Directory Listing?+

If exploited, CWE-548 (Exposure of Information Through Directory Listing) it can compromise Confidentiality, leading to outcomes such as Read Files or Directories.

How do you prevent or mitigate Exposure of Information Through Directory Listing?+

Recommended mitigations for CWE-548 include: 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.

What is the difference between a CWE and a CVE?+

A CWE (Common Weakness Enumeration) like CWE-548 describes a category of software weakness — the underlying flaw type. A CVE (Common Vulnerabilities and Exposures) identifies a specific, real-world vulnerability in a particular product. In short, a CWE is the kind of mistake, and a CVE is an instance of that mistake being found in software.

Learn More