Member-only story
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.
- Usually the request header will contain the authorization methods
- Fill in the tokens of the logged in user
- 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.