Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 24 additions & 3 deletions docs/user-guide/scanprocesses/Zap.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,33 @@ A full example target looks like this:
LOGGED_OUT_INDICATOR: "",
ZAP_SPIDER_API_SPEC_URL: "",
ZAP_CSRF_TOKEN_ID: "csrftoken",
ZAP_REPLACER_RULES:
[
{
matchType:"RESP_HEADER",
description:"Remove CSP",
matchString:"Content-Security Policy",
initiators:"",
matchRegex:"false",
replacement:"",
enabled:"true"
},
{
matchType:"REQ_HEADER",
description:"Add a special Authentication Header",
matchString:"Authorization: Basic QWxhZGRpbjpPcGVuU2VzYW1l",
initiators:"",
matchRegex:"false",
replacement:"Authorization: Basic QWxhZGRpbjpPcGVuU2VzYW1l",
enabled:"true"
}
]
]
}
```

>**Note**: The attributes in the example are all fields currently supported by the secureCodeBox Zap Scanner. Mandatory is only `ZAP_BASE_URL`. If this field is not present, the target is ignored.


> **Note**: The attributes in the example are all fields currently supported by the secureCodeBox Zap Scanner. Mandatory is only `ZAP_BASE_URL`. If this field is not present, the target is ignored.

## Zap Addon Replacer

The [Replacer](https://github.com/zaproxy/zap-extensions/wiki/HelpAddonsReplacerReplacer) is used to replace strings in requests and responses and is enabled in the secureCodeBox. It might be useful to to add an authentication header for security testing of APIs (e.g. with an OpenAPI specification).