Download Netsparker
Pricing
Blog
Contact
Netsparker

Directory Listing (NginX)

Netsparker identified a directory listing (Nginx).

The web server responded with a list of files located in the target directory.

Impact

An attacker can see the files located in the directory and could potentially access files which disclose sensitive information.

Actions to Take

  1. Change your nginx.conf file. A secure configuration for the requested directory should be similar to the following:
    location /{YOUR DIRECTORY} {
        autoindex off; 
    }
  2. Configure the web server to disallow directory listing requests.
  3. Ensure that the latest security patches have been applied to the web server and the current stable version of the software is in use.

External References


Go back to the Complete list of Vulnerability Checks.