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

Commit 7452e1e

Browse files
authored
Add Replacer to doc
Please see secureCodeBox/scanner-webapplication-zap#17.
1 parent c68de0a commit 7452e1e

1 file changed

Lines changed: 23 additions & 4 deletions

File tree

  • docs/user-guide/scanprocesses

docs/user-guide/scanprocesses/Zap.md

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,31 @@ A full example target looks like this:
8282
LOGGED_OUT_INDICATOR: "",
8383
ZAP_SPIDER_API_SPEC_URL: "",
8484
ZAP_CSRF_TOKEN_ID: "csrftoken",
85+
ZAP_REPLACER_RULES:
86+
[
87+
{
88+
matchType:"RESP_HEADER",
89+
description:"Remove CSP",
90+
matchString:"Content-Security Policy",
91+
initiators:"",
92+
matchRegex:"false",
93+
replacement:"",
94+
enabled:"true"
95+
},
96+
{
97+
matchType:"REQ_HEADER",
98+
description:"Add a special Authentication Header",
99+
matchString:"Authorization: Basic QWxhZGRpbjpPcGVuU2VzYW1l",
100+
initiators:"",
101+
matchRegex:"false",
102+
replacement:"Authorization: Basic QWxhZGRpbjpPcGVuU2VzYW1l",
103+
enabled:"true"
104+
}
105+
]
85106
]
86107
}
87108
```
88109

89110
>**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.
90-
91-
92-
93-
111+
## Zap Addon Replacer
112+
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 usefull to to add an authentication header for security testing of APIs (e.g. with an OpenAPI specification).

0 commit comments

Comments
 (0)