Skip to content
XSS Write-up Beginner

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 .

Myles Corey, on medium.com

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

  1. Confirm the practice application is running locally in the browser
  2. Open the proxy tool and navigate to the reflected XSS exercise
  3. Enter a plain test string in the name field
  4. Inspect the captured traffic to find the request containing the name parameter
  5. Send the request to the fuzzer, highlight the name value and insert a test payload
  6. 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.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.