Workflow-1
Spider --> Spider with AJAX --> Active Scan ---> Alerts --> HTML Report
Workflow-2
Spider --> Spider with AJAX --> Passive Scan ---> Alerts --> HTML Report
- Application Under Test : Damn Vulnerable Web Application (DVWA) in Docker
$ docker run --rm -it -p 3000:80 vulnerables/web-dvwa
- Open OWASP ZAP Proxy Desktop (Ubuntu)
$ zap.sh
Workflow-1 (Active Scan with or without Authentication)
$ mvn clean test -Dtest=SecurityTest#activeScanWithoutAuthentication
$ mvn clean test -Dtest=SecurityTest#activeScanWithAuthentication
Workflow-2
$ mvn clean test -Dtest=SecurityTest#passiveScanWithoutAuthentication
$ mvn clean test -Dtest=SecurityTest#passiveScanWithAuthentication