Skip to content
XSS Write-up Beginner

Reflected Xss Triggered In Url

A sign-up page accepted a continue_to parameter and used it as a redirect target without checking the scheme, so a javascript: value ran script when the victim clicked the site's own continue link. An attacker could send a crafted join link and run script in the victim's session on the site's origin.

Shreya Talukdar Follow

Published on infosecwriteups.com

Hello guys, here I am back again with a report on reflected xss which was again very easy bug to find but interesting. Took me a min to find the bug …😁

Shreya Talukdar, on infosecwriteups.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 continue_to parameter was passed straight into a redirect or navigation sink without validating that the value is a safe http(s) URL, allowing a javascript: scheme.

Impact

An attacker could run script in a victim's browser on the site's origin after the victim followed a crafted join link and clicked through, which could lead to actions on the victim's behalf.

What the attacker needed

Victim opens a crafted join link; victim completes sign-up and clicks continue

How it was found

  1. Open the site's join page with the continue_to parameter set to a path.
  2. Fill in the sign-up details.
  3. Change continue_to to a javascript: value.
  4. Click Join, then click the continue link on the next page.
  5. The script runs.

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 web page can send you to another page after you sign up, using a value in the link. This site did not check what kind of address that value was, so it accepted one that starts with javascript: instead of https:. When the user clicked the site's own continue button, the browser ran that script as if the site had written it, which lets an attacker act as the logged-in user.

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 Shreya Talukdar

View all

3 more disclosed reports, 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.