Skip to content
XSS Write-up Beginner

Bypassing Input Validation $0 - $1000

The signup form only checked input in the browser, so special characters were blocked there but not on the server. By intercepting and resending the request with characters like angle brackets or slashes, an attacker could submit values the form was meant to reject, which the author says could lead to XSS, SQL injection, LFI or SSTI.

mdnafeed3 Follow

Published on medium.com

The original lives on medium.com

We do not hold its text, 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

Impact

The author claims this could lead to SQL injection, XSS, LFI or SSTI, but no actual exploitation or impact is demonstrated.

What the attacker needed

A signup form with client-side validation; ability to intercept and edit requests

The fix

The server should repeat all input validation checks instead of trusting the browser.

How it was found

  1. Fill in the signup form and intercept the request with Burp Suite.
  2. Send the captured request to Burp Repeater.
  3. Change fields such as first name, last name or address to include special characters or a link.
  4. Send the modified request and observe the response.
  5. If the server rejects it, try changing the request method between POST and GET.

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.

A website can check what you type in two places: in your browser before the form is sent, and on the server after it arrives. Here only the browser checked, so someone using a tool to edit the request could skip that check and send anything. The author warns this could let harmful input reach other parts of the site, but does not show a working attack.

What is XSS?

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

More by mdnafeed3

View all

1 more disclosed report, best first.

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.