Skip to content
XSS Write-up Beginner

From Informative to Rewarded: The Surprising Journey of a Hyperlink Injection Vulnerability

The registration first-name field accepted unsanitised input, including URLs, and that value was later placed into automated emails where mail clients turned it into a clickable link. An attacker could register using a victim's email address so the victim received a legitimate-looking email pointing at the attacker's site, potentially leading to credential theft.

InsbatArshad Follow

Published on medium.com

Assalam o alaikum for muslim brothers and hello for non muslims, i hope all of you are doing well and learning new things day by day.

Be nice insabat, 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 first-name field had no validation or sanitisation, so attacker-supplied text containing a URL was stored and reused verbatim in automated emails.

Impact

The victim could be redirected to an attacker-controlled site and have credentials stolen, though the team initially judged this below the valid threshold because it required unlikely user interaction and depended on mail clients linking bare URLs.

What the attacker needed

Attacker can register accounts; victim's email used at sign-up; victim clicks the emailed link

The fix

The first name field was fixed by adding proper input sanitisation that blocks characters which could form URLs.

How it was found

  1. Register an account with a URL placed in the first name field.
  2. Enter a victim's email address during registration.
  3. The victim receives what looks like a genuine account verification email.
  4. The victim clicks the link and is taken to the attacker's site.

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 you sign up, the site stores what you type, such as your first name, and later reuses it in emails it sends. Here the site never checked that text, so someone could type a web address instead of a name. Email programs often turn plain web addresses into clickable links, so the victim could be sent to a site the attacker controls.

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 InsbatArshad

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.