Burp Suite User Forum

Login to post

How do I add a custom cookie to every request in the proxy? (Must be extender + session handler as cookie changes every request)

Toobz | Last updated: May 13, 2021 10:34PM UTC

I saw a way to add custom headers to every request in Burp via an extension + session handler rule: (https://forum.portswigger.net/thread/multiple-headers-9e49d8d25cdf99e1769) however I was wondering if I could have some help adapting this for adding/modifying a cookie value for each request that is sent?

Uthman, PortSwigger Agent | Last updated: May 14, 2021 08:11AM UTC

Hi Toobz, You can try using the following extensions: - Authentication Token Obtain and Replace - Auth Analyzer - Reshaper - CSTC, Modular HTTP Manipulator Alternatively, you can use the 'Set a specific cookie or parameter value' session handling rule: https://portswigger.net/burp/documentation/desktop/options/sessions/rule-editor#set-a-specific-cookie-or-parameter-value

Toobz | Last updated: May 14, 2021 04:24PM UTC

CSTC, Modular HTTP Manipulator ending up having what I needed! No need for me to recreate the wheel when there's already something great out there. Thanks Uthman!

Uthman, PortSwigger Agent | Last updated: May 17, 2021 08:24AM UTC

You are welcome!

You need to Log in to post a reply. Or register here, for free.