I have scanned my website using Nessus.But I need to scan it as logged in user since most of the urls are accessible only if we are logged in.How can I set website login credentials in Nessus?
Nessus 5 made a change: It's in the Preferences section:
- Login configurations
- HTTP login page
There you can set your HTTP credentials/settings.
This is a basic check in the documentation. Why go Google, when you can RTFM....
Nessus has the information posted on their page with a full walk through. http://www.tenable.com/tips/how-to-enable-credentialed-checks-on-windows
There are two ways:
Cookie import: First you have to export them from your browser in netscape format. Read more here
Http Login Parameters: An article demonstrating this option is here.
Moreover, the steps as described in the documentation are the following:
- Create new scan
- Web Application Tests
Credentials: which are filled out like these (taken from documentation):
- Username: Login user’s name.
- Password: Password of the user specified.
Login page: The absolute path to the login page of the application, e.g., /login.html
Login submission page: The action parameter for the form method. For example, the login form for: would be: /login.php
Login parameters: Specify the authentication parameters (e.g., login=%USER%&password=%PASS%). If the keywords %USER% and %PASS% are used, they will be substituted with values supplied on the Login configurations drop-down menu. This field can be used to provide more than two parameters if required (e.g., a group name or some other piece of information is required for the authentication process).
Check authentication on page: The absolute path of a protected web page that requires authentication, to better assist Nessus in determining authentication status, e.g., /admin.html.
Regex to verify successful authentication: A regex pattern to look for on the login page. Simply receiving a 200 response code is not always sufficient to determine session state. Nessus can attempt to match a given string such as Authentication successful
However, in my case (drupal 6), it couldn't authenticate