We are right now trying to evaluate the ZAP Tool. Till now it is looking very handy.
Great to have this tool.
2. This needs an header to be passed with a combination of key and value.
3. This was possible with the Replacer in the options in the GUI tool. But If you could help me with how do i pass this in the YML file. The YML file is as below
---
env:
contexts:
- name: "Default Context"
urls:
- "
https://xxx.com/external/test/demo/1"
includePaths:
- "
https://xxx.com/external/test/demo/1.*"
excludePaths: []
authentication:
parameters:[]
verification:
method: "response"
pollFrequency: 60
pollUnits: "requests"
sessionManagement:
method: "cookie"
parameters: {}
parameters:
failOnError: true
failOnWarning: false
progressToStdout: true
vars:
Header-Key: "Header-Value"jobs:
- parameters:
scanOnlyInScope: true
enableTags: false
rules: []
name: "passiveScan-config"
type: "passiveScan-config"
- parameters:
context: "Default Context"
user: ""
url: "
https://xxx.com/external/test/demo/1 "
maxDuration: 0
maxDepth: 0
maxChildren: 0
name: "spider"
type: "spider"
tests:
- onFail: "INFO"
statistic: "automation.spider.urls.added"
site: ""
operator: ">="
value: 100
name: "At least 100 URLs found"
type: "stats"
- parameters:
context: "Default Context"
user: ""
url: "
https://xxx.com/external/test/demo/1 "
maxDuration: 0
maxCrawlDepth: 0
numberOfBrowsers: 0
name: "spiderAjax"
type: "spiderAjax"
tests:
- onFail: "INFO"
statistic: "spiderAjax.urls.added"
site: ""
operator: ">="
value: 100
name: "At least 100 URLs found"
type: "stats"
- parameters: {}
name: "passiveScan-wait"
type: "passiveScan-wait"
- parameters:
context: "Default Context"
user: ""
policy: ""
maxRuleDurationInMins: 0
maxScanDurationInMins: 0
policyDefinition:
defaultStrength: "medium"
defaultThreshold: "medium"
rules: []
name: "activeScan"
type: "activeScan"
- parameters:
template: "risk-confidence-html"
theme: "original"
reportDir: "C:\\ZAPReports"
reportFile: "ZAP-Report-api.test"
reportTitle: "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: "ZAP-Report-api.test"
type: "report"