Add a request parameter in every request made

69 views
Skip to first unread message

Leonardo Oliveira

unread,
Dec 29, 2022, 1:55:45 PM12/29/22
to OWASP ZAP User Group
Hi,
I need to test an application in which every requested page needs to have a request parameter caled "t" with an authentication token.

Example:
- To access the xyz resource, I need to make the request below:

how do I make to add the "t" request parameter in all the requests performed by ZAP, including the scanners and the spider?

Simon Bennetts

unread,
Dec 30, 2022, 4:14:49 AM12/30/22
to OWASP ZAP User Group
The easiest way to change requests is using the replacer: https://www.zaproxy.org/docs/desktop/addons/replacer/
However this case is a little bit tricky, as you probably want to do different things depending on whether the URL already has parameters, e.g.
So in this case I'd recommend using an httpsender script - we have lots of example scripts here: https://github.com/zaproxy/community-scripts/tree/main/httpsender

Cheers,

Simon
Reply all
Reply to author
Forward
0 new messages