Skip to content
XSS Write-up Beginner

The Complete Dark Side of Hyperlink Injection: Email Abuse, Websi

A demo request form's First Name field was rendered as a clickable hyperlink in generated emails without sanitisation. An attacker could inject a domain name to create misleading links in emails from the organisation's domain, potentially enabling phishing.

LAWCY official Follow

Published on medium.com

Hyperlink injection is one of the most underestimated yet consistently effective attack classes in modern cybersecurity. It does not rely on exotic zero-days, sophisticated binary exploitation, or nation-state resources.

LAWCY official, 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 email template automatically converts text that looks like a domain or URL into a hyperlink without encoding or validation.

Impact

Could enable phishing or social engineering by making emails from the organisation's domain contain attacker-controlled links, and may escalate if other fields allow richer content.

What the attacker needed

Access to demo request form; ability to submit form

The fix

The report recommends applying proper output encoding in email templates, treating name fields as plain text, disabling automatic linkification of untrusted input, and validating input format.

How it was found

  1. Navigate to the demo request page.
  2. Fill out the form with valid values.
  3. Set the First Name field to a domain name.
  4. Submit the form.
  5. Observe the generated email.

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 type something into a form, the website should treat it as plain text. Here, the website automatically turned a domain name into a clickable link inside an email it sent. That means an attacker could make an email from the company contain a link to a site they control, which could trick people.

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 LAWCY official

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.