Burp Suite: Match And Replace

Thexssrat
3 min readApr 6, 2021

Introduction

Burp suite’s proxy options have an option called “Match and replace” available. This option has many rich uses that can help us automate our testing process. With some smart uses of this amazing option, we can automatically test for CSRF, IDOR, command injection,.. by just clicking around in the application! Let’s explore this magical tool and it’s many options.

Replacing authorization headers

Since authorize basically just matches the authorization headers and attempts to replace them with the ones the user supplied, we can set up a similar rule in the proxy.

  1. Usually the request header will contain the authorization methods
  2. Fill in the tokens of the logged in user
  3. Fill in the tokens of a second user you want to use

Now, as long as this rule is active you can click around in the application. If you can open any information that should not be public, we have an IDOR on our hands.

To disable this rule, simple uncheck the checkbox in front of it.

--

--

Thexssrat

No b*llshit Hacking tutorials with extreme value in short bursts