I Tested the Same Site With Claude Twice. The Focused Prompt Foun
The author compared two AI-assisted testing sessions against a deliberately vulnerable practice site, one with a broad prompt covering many bug classes and one focused only on XSS. The focused session found five working XSS issues, four of which the broad session missed, and showed that the broad session's single claimed XSS did not actually work.
Published on medium.com
The target was Gin and Juice Shop, a deliberately vulnerable application from PortSwigger. It is designed for security testing, so this was a safe environment for the experiment.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the underlying issues were context-dependent output encoding mistakes: escaping quotes but not backslashes, blocking only script tags, an outdated AngularJS version compiling template expressions, and a client-side library reading URL parameters in a way that let a hidden setting be changed.
Impact
An attacker could run their own JavaScript in a victim's browser through several search and login inputs, though the author notes this was a practice site and real programs would be messier.
What the attacker needed
Access to a deliberately vulnerable lab site; AI assistant connected to Burp; manual browser verification
How it was found
- Connect the AI assistant to Burp and give it a broad prompt covering eleven bug types.
- Review the reported findings and note which were marked confirmed.
- Start a fresh chat with the same setup and a prompt focused only on XSS.
- Manually verify each XSS finding in a real browser.
- Re-test the login page XSS from the broad session and find it does not work.
- Replace it with a working payload and confirm execution.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
This is a write-up comparing two ways of asking an AI assistant to hunt for bugs on a practice website. Cross-site scripting (XSS) is when a site puts attacker-controlled text into a page in a way that makes the browser run it as code. The author found that asking the assistant to look for just one bug type led to deeper testing and more real bugs than asking it to look for everything at once.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.