Manual XSS Testing
A deliberately vulnerable practice application (DVWA) reflected a name parameter without sanitising it, so a simple script payload executed in the browser. The author confirmed reflected cross-site scripting on their own local instance.
medium.com
Published on medium.com
As I get ready for work I decided to do another XSS Testing this time a little more detailed .
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 application echoed the user-supplied name value into the page without encoding or validating it.
Impact
An attacker could run script in a victim's browser session on the affected page, though the test was only performed against a local practice instance.
What the attacker needed
Local DVWA instance; proxy tool such as ZAP
How it was found
- Confirm the practice application is running locally in the browser
- Open the proxy tool and navigate to the reflected XSS exercise
- Enter a plain test string in the name field
- Inspect the captured traffic to find the request containing the name parameter
- Send the request to the fuzzer, highlight the name value and insert a test payload
- Observe the response to confirm the payload executed
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.
Cross-site scripting (XSS) happens when a website puts something you typed straight back into the page without cleaning it first. If that something is a small script, the browser runs it as if the site itself had written it. Here the author tested this on a deliberately insecure practice app running on their own machine, not on a real target.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.