Groups
Groups
Sign in
Groups
Groups
ZAP User Group
Conversations
About
Send feedback
Help
ZAP Automation excludePaths
259 views
Skip to first unread message
Floodeen Tom
unread,
Jul 26, 2022, 11:40:52 AM
7/26/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to OWASP ZAP User Group
I have these excludePaths in my yaml file:
excludePaths:
- "
https://accounts.google.com.
*"
- "
https://optimizationguide-pa.googleapis.com.
*"
- "
https://update.googleapis.com.
*"
- "
https://www.java.com.
*"
Yet when the report runs after the scans, It states this:
Sites
The following sites were included:
https://optimizationguide-pa.googleapis.com
https://www.java.com
https://accounts.google.com
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 AM
7/26/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 AM
7/26/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 PM
7/26/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.*"
excludePaths:
- "
https://accounts.google.com.
*"
- "
https://optimizationguide-pa.googleapis.com.
*"
- "
https://update.googleapis.com.
*"
- "
https://www.java.com.
*"
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