Missing access restriction to directory listing detected.
- Rule ID: javascript_express_exposed_dir_listing
- Languages: javascript
- Source: exposed_dir_listing.yml
Description
Inappropriate exposure of a directory listing could give attackers access to sensitive data or source code, either directly or through exploitation of an exposed file structure.
Remediations
✅ Restrict access to sensitive directories and files
Resources
Associated CWE
OWASP Top 10
Configuration
To skip this rule during a scan, use the following flag
bearer scan /path/to/your-project/ --skip-rule=javascript_express_exposed_dir_listing
To run only this rule during a scan, use the following flag
bearer scan /path/to/your-project/ --only-rule=javascript_express_exposed_dir_listing
Ready to take the next step? Learn more about Bearer Cloud.