OWASP ZAP · Capability
ZAP API — acsrf
ZAP API — acsrf. 6 operations. Lead operation: acsrf. Self-contained Naftiko capability covering one Owasp Zap business surface.
What You Can Do
GET
Acsrfactionaddoptiontoken
— Adds an anti-CSRF token with the given name, enabled by default
/v1/json/acsrf/action/addoptiontoken
GET
Acsrfactionremoveoptiontoken
— Removes the anti-CSRF token with the given name
/v1/json/acsrf/action/removeoptiontoken
GET
Acsrfactionsetoptionpartialmatchingenabled
— Define if ZAP should detect CSRF tokens by searching for partial matches.
/v1/json/acsrf/action/setoptionpartialmatchingenabled
GET
Acsrfviewoptionpartialmatchingenabled
— Define if ZAP should detect CSRF tokens by searching for partial matches
/v1/json/acsrf/view/optionpartialmatchingenabled
GET
Acsrfviewoptiontokensnames
— Lists the names of all anti-CSRF tokens
/v1/json/acsrf/view/optiontokensnames
GET
Acsrfothergenform
— Generate a form for testing lack of anti-CSRF tokens - typically invoked via ZAP
/v1/other/acsrf/other/genform
MCP Tools
adds-anti-csrf-token-given
Adds an anti-CSRF token with the given name, enabled by default
read-only
idempotent
removes-anti-csrf-token-given
Removes the anti-CSRF token with the given name
read-only
idempotent
define-if-zap-should-detect
Define if ZAP should detect CSRF tokens by searching for partial matches.
read-only
idempotent
define-if-zap-should-detect-2
Define if ZAP should detect CSRF tokens by searching for partial matches
read-only
idempotent
lists-names-all-anti-csrf
Lists the names of all anti-CSRF tokens
read-only
idempotent
generate-form-testing-lack-anti
Generate a form for testing lack of anti-CSRF tokens - typically invoked via ZAP
read-only
idempotent