agartha v1.0 releases: burp extension for dynamic payload generation to detect injection flaws
Agartha { LFI | RCE | Auth | SQLi | Http-Js }
Agartha is a penetration testing tool that creates dynamic payload lists and user access matrix to reveal injection flaws and authentication/authorization issues. There are many different attack payloads that exist, but Agartha creates run-time, systematic, and vendor-neutral payloads with many different possibilities and bypassing methods. It also draws attention to user session and URL relationships, which makes it easy to find user access violations. And additionally, it converts Http requests to JavaScript to help dig up XSS issues. In summary:
- Payload Generator: It creates payloads/wordlists for different attacks.
- Directory Traversal/Local File Inclusion: It creates file dictionary lists with various encoding and escaping characters.
- Remote Code Execution: It creates command dictionary lists for both Unix and Windows environments with different combinations.
- SQL Injection: It creates Batched Queries, Boolean-Based, Union-Based and Time-Based SQLi wordlist for various databases to help find vulnerable spots.
- Authorization Matrix: It creates an access role matrix based on user sessions and URL lists to determine authorization/authentication-related access violation issues.
- And Http Request to JavaScript Converter: It converts Http requests to JavaScript code to be useful for further XSS exploitation and more.
Directory Traversal/Local File Inclusion
It both supports Unix and Windows file systems. You can generate any wordlists dynamically for the path you want. You just need to supply a file path and that’s all.
‘Depth’ is a representation of how deep the wordlist should be. You can generate wordlists ’till’ or ‘equal to’ this value.
‘Waf Bypass’ asks if you want to include all bypass features; like null bytes, different encoding, etc.
Remote Code Execution
It creates command execution dynamic wordlists for the command you supply. It combines different separators and terminators for Unix and Windows environments together.
SQL Injection Batched Queries, Boolean-Based, Union-Based and Time-Based
It is for SQLi attacks and you do not need to supply any inputs. You just pick what type of SQLi attacks and databases you want, then it will generate a wordlist with escape characters and different combinations.
Authorization Matrix
This part focuses on user session and URLs relationships to determine access violations. The tool will visit all URLs from pre-defined user sessions and fill the table with all Http responses. It is a kind of access matrix and helps to find out authentication/authorization issues. Afterward, we will see what users can access what page contents.
- User session name: You can right-click on any request and send it ‘Agartha Panel’ to define user sessions.
- URL Addresses users can visit: You can use Burp’s spider feature or any sitemap generators. You may need to provide different URLs for different users.
After sending the Http request to Agartha, the panel will fill some fields in the tool.
- What’s the username for the session you provide. You can add up to 4 different users and each user will have a different color to make it more readable.
- User’s request header and all user-related URL visits will be based on it.
- URL addresses the user can visit. You can create this list with manual effort or automatic tools, like spiders, sitemap generators, etc, and do not forget to remove logout links.
- All URLs you supply will be in here. Also, user cells will be colored, if the URL belongs to her/him.
- Http requests and responses without authentication. All session cookies, tokens, and parameters will be removed from Http calls.
- Http requests and responses with the user session you define in the first step. Cell titles show Http response codes and response lengths.
- Just click the cell you want to examine and Http details will be shown here.
After clicking ‘RUN’, the tool will fill the user and URL matrix with different colors. Besides the user colors, you will see orange, yellow and red cells. The URL address does not belong to the user and the cell color is:
- Yellow, because the response returns ‘HTTP 302’ with authentication/authorization concerns
- Orange, because the response returns ‘HTTP 200’ but different content length, with authentication/authorization concerns
- Red, because the response returns ‘HTTP 200’ and the same content length, with authentication/authorization concerns
It will be quite similar, even if we add more users and any authorization concerns will be highlighted in the same way.
You may also notice, it supports only one Http request method and user session at the same time, because it processes bulk requests and it is not possible to provide different header options for each call. But you may play with ‘GET/POST’ methods to see response differences.
Http Request to JavaScript Converter
The feature is for converting Http requests to JavaScript code. It can be useful to dig up further XSS issues and bypass header restrictions, like CSP, CORS.
To access it, right-click any Http Request, Extensions, ‘Agartha’, and ‘Copy as JavaScript’.
It will automatically save it to your clipboard with some remarks. For example:
Please note that the JavaScript code will be called over the original user session and many header fields will be filled automatically. In some cases, the server may require some header fields mandatory, and therefore you may need to modify the code for an adjustment.
Install
git clone https://github.com/volkandindar/agartha.git
For manual installation, you should download ‘jython’ file first, and then:
- Extender > Options > Python Environment > Locate jython standalone jar file
- Extender > Extensions > Add > Extension Type: Python > Select file: ‘agartha.py’
- After you will see the ‘Agartha’ tab in the main window and it will be also registered with the right-click, under ‘Extensions > Agartha {LFI|RCE|Auth|SQLi|Http-Js}’.
Source: https://github.com/volkandindar/