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.
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.
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.
Depending on if the CSRF token is in the HEADER or the BODY section of the request, we will need to pick one.