Week 2 - CSRF Token Bypass
CSRF Token Bypass Using BurpSuite
Launch Burp and Intercept the HTTP Request of the page containing the CSRF token.Go to Project Options -> Sessions -> Macros and click the Add buttonSelect the Intercepted HTTP Request and press OKSelect ‘Configure item’ and press AddScroll through the HTTP Response and select the CSRF token (see below screenshot). Don’t forget to name the Parameter based upon where the CSRF token is being used (GET or POST).Press Ok to create the macroScroll up to ‘Session Handling Rules’ and press AddIn ‘Rule Actions’ press Add and ‘Run a macro’. Select your macro.Move over to the Scope tab and add the target domain in the URL Scope. Don’t Forget to Check the ‘Proxy (use with caution)’ box at the top.


