Finding “BAC - IDOR -PE” Within a Minute using Autorize Tool
Hello People,
I would like to say thanks to you all before I start the blog because I got a lot of views and responses for the “Command Injection Vulnerability via File Upload” If you are new to my blogs Just check my Profile and read the blogs.
Today we going to see one interesting tool in Burp that helps you to Find the “Broken Access Control, IDOR, and Privilege Escalation” Vulnerabilities within 5 Minutes by Browsing the application.
You don’t believe it, right? Let’s try my steps to find those vulnerabilities.
What is Autorize?
Autorize is an automatic authorization enforcement detection extension for Burp Suite. It was written in Python by Barak Tawily, an application security expert. Autorize was designed to help security testers by performing automatic authorization tests. With the last release now Autorize also performs automatic authentication tests.
Installation
- Download Burp Suite (obviously): http://portswigger.net/burp/download.html
- Download Jython standalone JAR: http://www.jython.org/download.html
- Open burp -> Extender -> Options -> Python Environment -> Select File -> Choose the Jython standalone JAR
- Install Autorize from the BApp Store or follow these steps:
- Download the Autorize.py file.
- Open Burp -> Extender -> Extensions -> Add -> Choose Autorize.py file.
- See the Autorize tab and enjoy automatic authorization detection :)
How to use it?
- After installation, the Autorize tab will be added to Burp.
- Open the configuration tab (Autorize -> Configuration).
- Get your low-privileged user authorization token header (Cookie / Authorization) and copy it into the textbox containing the text “Insert injected header here”. Note: Headers inserted here will be replaced if present or added if not.
- Uncheck “Check unauthenticated” if the authentication test is not required (request without any cookies, to check for authentication enforcement in addition to authorization enforcement with the cookies of the low-privileged user)
- Check “Intercept requests from Repeater” to also intercept the requests that are sent through the Repeater.
- Click on “Intercept is off” to start intercepting the traffic in order to allow Autorize to check for authorization enforcement.
- Open a browser and configure the proxy settings so the traffic will be passed to Burp.
- Browse to the application you want to test with a high privileged user.
- The Autorize table will show you the request’s URL and enforcement status.
- It is possible to click on a specific URL and see the original/modified/unauthenticated request/response in order to investigate the differences.
Authorization Enforcement Status:
There are 3 enforcement statuses:
- Bypassed! — Red color
- Enforced! — Green color
- Is enforced??? (please configure enforcement detector) — Yellow color
Note: “Bypassed” means you can access that page directly with Low Privileged users and sometime that page will lead to PE vulnerability and it depends on the application.
The first 2 statuses are clear, so I won’t elaborate on them.
The 3rd status means that Autorize cannot determine if authorization is enforced or not, so Autorize will ask you to configure a filter in the enforcement detector tabs. There are two different enforcement detector tabs, one for the detection of the enforcement of low-privileged requests and one for the detection of the enforcement of unauthenticated requests.
The enforcement detector filters will allow Autorize to detect authentication and authorization enforcement in the response of the server by content length or string (literal string or regex) in the message body, headers, or in the full request.
For example:
if there is a request enforcement status that is detected as “Authorization enforced??? (please configure enforcement detector)” it is possible to investigate the modified/original/unauthenticated response and see that the modified response body includes the string “You are not authorized to perform action”, so you can add a filter with the fingerprint value “You are not authorized to perform action”, so Autorize will look for this fingerprint and will automatically detect that authorization is enforced. It is possible to do the same by defining a content-length filter or fingerprint in headers.
Don’t Forget to “Follow me” for interesting blogs and share maximum.
Thanks for Reading and Happy Hacking…☺