Directory listing
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.
Remediation
- Configure your web server to prevent directory listings for all paths beneath the web root.
- Place into each directory a default file (such as index.htm) that the web server will display instead of returning a directory listing.
REST Specific
Asp_net
Ruby_on_rails
Next_js
Laravel
Express_js
Django
Symfony
Spring_boot
Flask
Nuxt
Fastapi
Configuration
Identifier:
configuration/directory_listing
Examples
Ignore this check
checks:
configuration/directory_listing:
skip: true
Score
- Escape Severity: LOW
Compliance
OWASP: API1:2023
pci: 2.2.5
gdpr: Article-32
soc2: CC6
psd2: Article-95
iso27001: A.18.1
nist: SP800-53
fedramp: AC-4
Classification
- CWE: 548
Score
- CVSS_VECTOR: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- CVSS_SCORE: 5.3