Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Commit b37ea6c

Browse files
authored
Merge pull request #46 from secureCodeBox/feature/skip-zap-spider-if-sitemap-provided
Added documentation for starting a zap scan without spider
2 parents 5210ecc + 4df73c9 commit b37ea6c

1 file changed

Lines changed: 48 additions & 1 deletion

File tree

docs/user-guide/usage-examples/zap-bodgeit-example.md

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ The following example contains a fully configured ZAP Scan for the BodgeIt Store
5555
```json
5656
[
5757
{
58-
"name": "Arachni BodgeIt Scan",
58+
"name": "ZAP BodgeIt Scan",
5959
"location": "http://bodgeit:8080/bodgeit/",
6060
"attributes": {
6161
"ZAP_BASE_URL": "http://bodgeit:8080/bodgeit/",
@@ -73,3 +73,50 @@ The following example contains a fully configured ZAP Scan for the BodgeIt Store
7373
```
7474

7575
This scan should finish in about a minute and should return a couple of findings.
76+
77+
## Scan with a given sitemap (skip spider task)
78+
79+
It is also possible to run the zap scan process with a predefined sitemap. In this case the spider task will be skiped and the zap scanner microservice can start directly with the scan task.
80+
81+
### Start the scan via HTTP API
82+
83+
`PUT http://localhost:8080/box/processes/zap-process`
84+
85+
### Start the full scan via CLI
86+
87+
`run_scanner.sh --payload payloadFile.json`
88+
89+
### Payload to start scan (without spider)
90+
91+
```json
92+
[{
93+
"name": "ZAP BodgeIt Scan with given sitemap ",
94+
"location": "http://bodgeit:8080/bodgeit",
95+
"attributes": {
96+
"ZAP_BASE_URL": "http://bodgeit:8080/bodgeit",
97+
"ZAP_SITEMAP": [{
98+
"request": {
99+
"method": "GET",
100+
"url": "http://bodgeit:8080/bodgeit/search.jsp?q=ZAP",
101+
"httpVersion": "HTTP/1.1",
102+
"headers": [],
103+
"queryString": [{
104+
"name": "q",
105+
"value": "ZAP"
106+
}],
107+
"postData": {
108+
"mimeType": "",
109+
"params": [],
110+
"text": ""
111+
}
112+
},
113+
"ZAP_BASE_URL": "http://bodgeit:8080/bodgeit"
114+
}]
115+
}
116+
}]
117+
```
118+
119+
### The Sitemap Parameter
120+
The sitemap contains request objects in a HAR format. To generate the requests for your sitemap, you can:
121+
* take the result of previous microservice zap spider tasks via camunda ui OR
122+
* use a local running ZAP application as a proxy, browse manully through your target and import the recorded requests via "http://[your-local-zap]:[your-zap-port]/UI/core/other/messagesHar/"

0 commit comments

Comments
 (0)