There are two stages:
- Configuring the Scan Policy
- Specifying a Parameter to Exclude from the Scan
Configuring the Scan Policy
Excluded parameters are specified in the Ignored Parameters setting in a Scan Policy.
How to Configure the Scan Policy
First, open the Scan Policy Editor
- For Netsparker Desktop, open the Scan Policy Editor in Netsparker Desktop:
- From the toolbar, click Start New Scan. The Start a New Website or Web Service Scan dialog is displayed. In the Scan Policy panel, click the three dots to open the Scan Policy Editor.
- For Netsparker Cloud, Edit the Scan Policy in Netsparker Cloud:
- From the dashboard, navigate to the left hand menu Policies, and select Scan Policies. The Scan Policies list is displayed.
- Click New Scan Policy to create a new scan policy.
Alternatively, click Clone to clone and edit an existing Scan Policy.
Specifying a Parameter to Exclude From a Scan
You can exclude parameters from scans. Each default Scan Policy contains a list, Excluded Parameters. You can edit existing excluded parameters or add new ones.
Excluded Parameters Definitions
For each parameter, Netsparker displays the following definitions.
|Name||This is a name for your reference.||This is a friendly name for the parameter.||ASP Session ID (COOKIE)|
|Pattern||This is the actual name of the parameter to be excluded from the scan.||Pattern matching is case sensitive, so use the correct capitalization.
You can also use any of these pattern options to match the patterns in the parameter name:
● ? - any single character
● * - zero or more characters
● # - any single digit (0-9)
● [charlist] - any single character in charlist
● [!charlist] - any single character not in charlist See Pattern Options.
|Type||This is the parameter type.||Select GET, POST, COOKIE or ALL. If you want to ignore GET and POST parameters with this name or match, create two entries, one with POST and one with GET. If you want to ignore GET, POST and COOKIE parameters, create one entry with ALL.||COOKIE|
How to Specify a Parameter to Exclude From a Scan
- Open the Ignore Parameters list:
- In Netsparker Desktop:
- In the Scan Policy Editor dialog, navigate to the Security Checks panel and select Ignored Parameters.
- In Netsparker Cloud:
- From the dashboard menu, select Policies, then Ignored Parameters.
- The configured POST and GET Ignored Parameters list is displayed.
- Do the following:
- Create a new parameter:
- In Netsparker Desktop, click into the last (empty) row at the bottom of the list
- In Netsparker Cloud, click New
- Complete the NAME, PATTERN and TYPE definitions
- Alternatively, edit the definitions of an existing parameter.
- In Netsparker Desktop, click OK. In Netsparker Cloud, click Save.
How to Specify all GET or POST Parameters in a Scan
You can exclude all parameters for a specific HTTP verb (for example, the POST verb).
Add the following entry to the list of Ignored Parameters:
- Name: All POST Parameters
- Pattern: *
- Type: POST
There are three pattern options:
- Character Lists
- Special Characters
- Character Ranges
- A group of one or more characters (charlist) enclosed in square brackets ([ ]) can be used to match any single character in a parameter, and can include almost any character code, including digits
- An exclamation point (!) at the beginning of a charlist means that a match is made if any character, except the characters in charlist, is found in a parameter:
- When used outside brackets, the exclamation point matches itself
- Name: foo
- Pattern: foo[b]?[rz]
To match these special characters, enclose them in brackets:
- Left square bracket ([)
- Question mark (?)
- Number (hash) symbol (#)
- Asterisk (*)
- Name: foo#*?baz
- Pattern: foo[#][][*][?]baz
- By using a hyphen (-) to separate the lower and upper bounds of the range, charlist can specify a range of characters, for example:
- [A-Z] results in a match if the corresponding character position in the parameter contains any character within the range A-Z
- [!H-L] results in a match if the corresponding character position in the parameter contains any character outside the range H-L
- When you specify a range of characters, they must appear in ascending sort order (from lowest to highest)
- [A-Z] is a valid pattern; [Z-A] is not
- Name: foobar
- Pattern: foo[a-c]?[!a-c]
Multiple Character Ranges
To specify multiple ranges for the same character position, put them within the same brackets, without delimiters:
- [A-CX-Z] results in a match if the corresponding character position in the parameter contains any character within either the range A-C or X-Z
- Example, Name: foo, Pattern: fooba[r-ty-z]
Use of the Hyphen
- A hyphen (-) can appear either at the beginning (after an exclamation point, if any) or at the end of a charlist to match itself
- In any other location, the hyphen identifies a range of characters delimited by the characters on either side of the hyphen