Scan Settings: Session Exclusions

To access this feature, click the Edit menu and select Default Scan Settings or Current Scan Settings. Then, in the Scan Settings category, select Session Exclusions.

These settings apply to both the crawl and audit phases of a Fortify WebInspect vulnerability scan. To specify exclusions for only the crawl or only the audit, use the Crawl Settings: Session Exclusions or the Audit Settings: Session Exclusions.

Excluded or Rejected File Extensions

You can identify a file type and then specify whether you want to exclude or reject it.

By default, most image, drawing, media, audio, video, and compressed file types are rejected.

To add a file extension to reject or exclude:

  1. Click Add.

    The Exclusion Extension window opens.

  2. In the File Extension box, enter a file extension.

  3. Select either Reject, Exclude, or both.

  4. Click OK.

Excluded MIME Types

Fortify WebInspect will not process files associated with the MIME type you specify. By default, image, audio, and video types are excluded.

To add a MIME Type to exclude:

  1. Click Add.

    The Provide a Mime-type to Exclude window opens.

  2. In the Exclude Mime-type box, enter a MIME type.

  3. Click OK.

Other Exclusion/Rejection Criteria

You can identify various components of an HTTP message and then specify whether you want to exclude or reject a session that contains that component.

Editing Criteria

To edit the default criteria:

  1. Select a criterion and click Edit (on the right side of the Other Exclusion/Rejection Criteria list).

    The Reject or Exclude a Host or URL window opens.

  2. Select either Host or URL.

  3. In the Host/URL box, enter a URL or fully qualified host name, or a regular expression designed to match the targeted URL or host.

  4. Select either Reject, Exclude, or both.

  5. Click OK.

Adding Criteria

To add exclusion/rejection criteria:

  1. Click Add (on the right side of the Other Exclusion/Rejection Criteria list).

    The Create Exclusion window opens.

  2. Select an item from the Target list.

  3. If you selected Query Parameter or Post Parameter as the target, enter the Target Name.

  4. From the Match Type list, select the method to be used for matching text in the target:

    • Matches Regex - Matches the regular expression you specify in the Match String box.

    • Matches Regex Extension - Matches a syntax available from Fortify's regular expression extensions you specify in the Match String box.

    • Matches - Matches the text string you specify in the Match String box.

    • Contains - Contains the text string you specify in the Match String box.

  5. In the Match String box, enter the string or regular expression for which the target will be searched. Alternatively, if you selected a regular expression option in the Match Type, you can click the drop-down arrow and select Create Regex to launch the Regular Expression Editor.

  6. Click  (or press Enter).

  7. (Optional) Repeat steps 2-6 to add more conditions. Multiple matches are ANDed.

  8. If you are working in Current Settings, you can click Test to process the exclusions on the current scan. Any sessions from that scan that would have been filtered by the criteria will appear in the test screen, allowing you to modify your settings if required.

  9. Click OK.

  10. When the exclusion appears in the Other Exclusion/Rejection Criteria list, select either Reject, Exclude, or both.

    Note: You cannot reject Response, Response Header, and Status Code Target types during a scan. You can only exclude these Target types.

See Also

Scan Settings: Allowed Hosts

Scan Settings: Authentication

Scan Settings: Cookies/Headers

Scan Settings: Custom Parameters

Scan Settings: File Not Found

Scan Settings: Filters

Scan Settings: General

Scan Settings: HTTP Parsing

Scan Settings: JavaScript

Scan Settings: Method

Scan Settings: Policy

Scan Settings: Proxy

Scan Settings: Requestor

Scan Settings: User Agent