Are you a bug bounty hunter, penetration tester, or developer, but looking for ways to augment your abilities with the power of AI? You are in luck because ChatGPT can assist you in the following ways.
Javascript can be complicated and time-consuming to read, but is a gold mine for vulnerabilities. Let ChatGPT solve both for you.
Prompt:
Parse this javascript for vulnerabilities, hardcoded secrets, XSS, open redirect, and list any files and paths referenced. be specific with where the vulnerability is and a PoC for each. Use rich text formatting to make it easier to read:
<insert js>
If the Javascript is too long for ChatGPT, you can use snippets or OpenAI Playground.
Sometimes you see HTTP requests originating from Javascript code, but they don’t trigger during your black box testing in Burp Suite.
Prompt:
Write the HTTP request in the form of Burp Suite Repeater for the HTTP request referenced in the js:
<insert js>
Having trouble convincing someone of XSS impact? Nothing is more convincing than seeing a real proof of concept (PoC) to replace your boring alert()
pop-up. Pick an HTTP request that would be particularly impactful to the organization.
Prompt:
Write javascript that would make the HTTP request:
<insert HTTP request>
Try account takeover, leak Cookies/LocalStorage/DOM, or a fake login page.
Burp Suite has a built-in CSRF PoC tool, but ChatGPT can do it too. This is particularly useful if you want to make modifications to your PoC, you don’t use Burp Suite, or you’re hacking from your phone.
Prompt:
Write HTML code for the form that would make this HTTP request and make it auto-submit:
<insert HTTP request>
If you don’t know what encoding is being used or there are multiple layers of complex encoding, throw it at ChatGPT to interpret.
Prompt:
Decode this multiple times until it’s only plain text:
%26lt%3Bscript%26gt%3Balert%26lpar%3B%26quot%3Btaksec%26quot%3B%26rpar%3B%26lt%3B%26sol%3Bscript%26gt%3B