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.
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.
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
- Navigate to the demo request page.
- Fill out the form with valid values.
- Set the First Name field to a domain name.
- Submit the form.
- 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.