This vulnerability occurs when a web server is misconfigured to display a full list of files within a directory instead of serving a default web page, unintentionally exposing sensitive resources to anyone who visits the URL.

Directory listings happen when a web server (like Apache, Nginx, or IIS) can't find a default index file (e.g., index.html) and its configuration allows it to show the folder's contents. This acts as a roadmap for attackers, revealing backup files, configuration scripts, temporary uploads, or administrative interfaces that were never meant to be public. A simple manual check or a DAST scan can easily uncover this issue. Prevention involves configuring your server to disable directory listings and always ensuring a default index page exists. For developers, this means checking server configuration files for directives like 'Options -Indexes' in Apache or 'autoindex off' in Nginx. Managing this at scale across hundreds of services is difficult; an ASPM like Plexicus can help you continuously track and automatically flag these misconfigurations across your entire application portfolio.
Impact: 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.