A burp extension that allows for IDOR testing and facilitates automatic scanning.
To run tests:
java -jar ../jython-standalone-2.7.0.jar -Dpython.path=lib/burp-interfaces.jar -m unittest discover tests
To run an individual test:
java -jar ../jython-standalone-2.7.0.jar -Dpython.path=lib/burp-interfaces.jar -m unittest tests.test_imports.TestImports.testImportBase
You need the standalone jython from here
In order to install, clone the repository and then open burp. On the burp Extender page, go to options and set up the "Python environment" category. The only field you need to set up is the one labeled "Location of the Jython standalone JAR file", which should be pointed to the location of jython-standalone-2.7.0.jar
.
After that, go back to the Extensions
tab and click Add
. Set extension type to Python
, and set the file to the location of benteveo_toolbox.py
.
Once loaded, configuration takes the form of three sections on the Toolbox > Config
tab.
The first one is the scope section. You should input a URL like http://www.example.org/subfolder/
, which will match all urls that start with that string. You can input more than one URL, one per line. One that is done, you can click refresh and the Results
tab will be populated with previously made requests that match the scope.
Replacement rules are transformations that are applied to previous requests prior to sending them. For example, you may want to replace a session cookie or a CSRF token.
For example, you may browse the site using an admin user, and then create a replacement rule that will replace their session with a low-level users' cookie.
The session check contans a textarea that needs to be populated with a HTTP request that is a good indicator of whether our session is valid or not. It should meet the following preconditions:
Once you have populated the field, a user of this application can click the Check
button. This will obtain your request, modify it as per your replacement rules, and re-send it observing the result. If your session is still valid, the button's label will change to Check: OK
, whereas if it is no longer valid you will receive a message indicating the reason for this failure.
Clicking the Resend ALL
button will, if the session check has previously been successful, re-send all requests that have been previously made with the transformation rules applied and store the results.
Clicking the FUZZ
button will go through requests and, if it is able to find requests whose status code is the same for both the original request and the modified request, send them to Burp's active scan. The idea is to only fuzz one request per endpoint and only initiate fuzzing if we can be reasonable sure we have a valid session for the endpoint.
In order to merge code from the development branch to the master branch we should do and end to end manual test. This verifies the application is in a working test and avoids the situation where we send a bunch of traffic to a client site and the test results are not valid.
No code should be merged into the master branch without manually verifying the test plan passes.
The test plan is here. You can duplicate the database and run the test plan, linking the test plan on your PR.