Skip to content
Open redirect Write-up Beginner

When Links Lie: Discovering a Subtle Hyperlink Injection Flaw in

An invite email template inserted link input into the HTML body without sanitising or validating it, so a link could display one domain while pointing to another. An attacker could use this for phishing, brand impersonation or social engineering, though the author saw no evidence of active exploitation.

Sai Jayanth Follow

Published on medium.com

Recently, while reviewing an invite email from a popular platform, I noticed something that didn’t quite feel right. The email looked perfectly normal at first glance — professional layout, branded colors, and a clean “Sign up” button.

Sai Jayanth, 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

The flaw could be abused for phishing or credential theft, brand impersonation and social engineering, although the author states there was no evidence of active exploitation.

What the attacker needed

Attacker controls a link in the email; victim trusts the displayed text

The fix

Link input should be sanitised and validated before it is inserted into email templates or web content, and organisations should add link scanning or rewriting at the email gateway.

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.

An email can show one web address as clickable text while the actual destination is a different site. If the system that builds the email does not check the link before putting it in, someone can slip in a link that looks trustworthy but leads to a fake login page. This is dangerous because people trust what they see in a nicely formatted email.

What is Open redirect?

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.

More by Sai Jayanth

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Open redirect

The lesson behind this report.

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.