Skip to content
XSS Write-up Beginner

Bug Bounty — How I Found an XSS Vulnerability Through a “

A query parameter on the change-email page was reflected into the HTML without encoding, so an attacker could craft a link that runs script in the victim's browser. The author confirmed this with a pop-up alert.

Mickael Benlolo Follow

Published on medium.com

Web applications often come with complex workflows, and occasionally, vulnerabilities slip through the cracks. This is the story of how I uncovered a Cross-Site Scripting (XSS) vulnerability while exploring the change email functionality on a website.

Mickael Benlolo, 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

Impact

An attacker could run script in a victim's browser via a crafted link, though the text does not show what data or actions that script could reach.

What the attacker needed

A free account; victim clicks a crafted link

How it was found

  1. Create a fake account and open the change-email page.
  2. Notice the secop parameter in the URL.
  3. Put a unique marker in secop and search the page source for it.
  4. See the marker reflected inside an anchor tag's href.
  5. Replace the marker with a script payload and load the URL.
  6. Observe the alert box confirming 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.

When a website takes something from the address bar and puts it straight into the page, it can accidentally let an attacker add their own code. Here the 'secop' value was copied into a link without being made safe, so a crafted link could run a small script in the visitor's browser. That kind of flaw is called cross-site scripting, or XSS.

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 Mickael Benlolo

View all

2 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.