Hey Simon, I learned to use the automation framework better and managed to authenticate myself and do authenticated spidering, the problem is being the scan, it is being done empty, below is my script and print of the active scan
---
env:
contexts:
- name: "AUTOMATED"
urls:
includePaths:
excludePaths: []
authentication:
method: "browser"
parameters:
browserId: "firefox-headless"
loginPageWait: 20
verification:
method: "autodetect"
sessionManagement:
method: "autodetect"
parameters: {}
technology:
exclude: []
users:
- name: "auth"
credentials:
password: "password"
username: "administrator"
parameters:
failOnError: true
failOnWarning: false
progressToStdout: true
vars: {}
jobs:
- parameters:
scanOnlyInScope: true
enableTags: false
disableAllRules: false
rules: []
name: "passiveScan-config"
type: "passiveScan-config"
- parameters:
context: "AUTOMATED"
user: "auth"
maxDuration: 0
maxDepth: 0
maxChildren: 0
acceptCookies: true
handleODataParametersVisited: false
handleParameters: "IGNORE_COMPLETELY"
maxParseSizeBytes: 0
parseComments: false
parseGit: false
parseRobotsTxt: false
parseSitemapXml: false
parseSVNEntries: false
postForm: true
processForm: true
requestWaitTime: 0
sendRefererHeader: false
userAgent: ""
tests:
- onFail: "INFO"
statistic: "automation.spider.urls.added"
site: ""
operator: ">="
value: 10
name: "At least 10 URLs found"
type: "stats"
name: "spider"
type: "spider"
- parameters:
context: "AUTOMATED"
user: "auth"
maxDuration: 999999
maxCrawlDepth: 999999
numberOfBrowsers: 10
maxCrawlStates: 0
eventWait: 1000
reloadWait: 1000
clickDefaultElems: true
clickElemsOnce: true
randomInputs: true
inScopeOnly: true
runOnlyIfModern: false
excludedElements: []
tests:
- onFail: "INFO"
statistic: "spiderAjax.urls.added"
site: ""
operator: ">="
value: 100
name: "At least 100 URLs found"
type: "stats"
name: "spiderAjax"
type: "spiderAjax"
- parameters:
maxDuration: 0
name: "passiveScan-wait"
type: "passiveScan-wait"
- parameters:
context: "AUTOMATED"
user: "auth"
policy: ""
maxRuleDurationInMins: 0
maxScanDurationInMins: 0
addQueryParam: true
delayInMs: 0
handleAntiCSRFTokens: true
injectPluginIdInHeader: true
scanHeadersAllRequests: true
threadPerHost: 8
policyDefinition:
defaultStrength: "insane"
defaultThreshold: "high"
rules: []
name: "activeScan"
type: "activeScan"
- parameters:
template: "risk-confidence-html"
reportDir: "C:\\x"
reportTitle: "ZAP Scanning Report"
reportDescription: ""
name: "report"
type: "report"