ZAP Automation excludePaths

259 views
Skip to first unread message

Floodeen Tom

unread,
Jul 26, 2022, 11:40:52 AM7/26/22
to OWASP ZAP User Group
I have these excludePaths in my yaml file:


Yet when the report runs after the scans, It states this:

How do I get these sites to not show up in the report when running in automatioin?

Thanks,
-Tom

Simon Bennetts

unread,
Jul 26, 2022, 11:42:55 AM7/26/22
to OWASP ZAP User Group
Hiya Tom,

Which report are you using?
Are there any alerts from those sites actually included in the report?

Cheers,

Simon

Aakash Gupta

unread,
Jul 26, 2022, 11:47:51 AM7/26/22
to OWASP ZAP User Group
did you update the yaml file directly or via UI? you may not be exporting the context after excluding certain URLs.

Floodeen Tom

unread,
Jul 26, 2022, 12:35:28 PM7/26/22
to OWASP ZAP User Group
Below is the report section of my yaml file. It looks like  risk-confidence-html is used. I don't actually see any alerts from these sites.

I added the excludes to the context in the GUI before creating the Automation script. They were then saved in the contexts section of the yaml file.

env:
  contexts:
  - name: "TestAutomation"
    urls:
    - "http://myurl.mentorg.com:8080"
    includePaths:
    - "http://myurl.mentorg.com:8080.*"
    authentication:
      method: "script"
      parameters:
        script: "C:\\Users\\username\\OWASP ZAP\\scripts\\scripts\\authentication\\ZEST_KRB_Auth.zst"
        scriptEngine: "Mozilla Zest"
        LoginURL: "http:// myurl.mentorg.com:8080/SecAuth"
      verification:
        method: "response"
        pollFrequency: 60
        pollUnits: "requests"
        pollUrl: ""
        pollPostData: ""
    sessionManagement:
      method: "cookie"
      parameters: {}
  parameters:
    failOnError: true
    failOnWarning: false
    progressToStdout: true
  vars: {}

- parameters:
    template: "risk-confidence-html"
    theme: "original"
    reportDir: "C:\\Tools\\OWASP_ZAP\\reports"
    reportFile: ""
    reportTitle: "Server ZAP Scanning Report"
    reportDescription: ""
    displayReport: false
  risks:
  - "info"
  - "low"
  - "medium"
  - "high"
  confidences:
  - "falsepositive"
  - "low"
  - "medium"
  - "high"
  - "confirmed"
  sections:
  - "siteRiskCounts"
  - "responseBody"
  - "appendix"
  - "alertTypes"
  - "responseHeader"
  - "alertTypeCounts"
  - "riskConfidenceCounts"
  - "alerts"
  - "aboutThisReport"
  - "contents"
  - "requestBody"
  - "reportDescription"
  - "reportParameters"
  - "requestHeader"
  - "summaries"
  name: "report"
  type: "report"


Reply all
Reply to author
Forward
0 new messages