Skip to content
Info disclosure Write-up Beginner

A Subtle Bug That Opened the Door to Malicious Hyperlinks

The application stored a user's first name without validation and later rendered it as a clickable hyperlink in automated emails such as password resets. An attacker could set their first name to a URL-like string, causing the platform to send emails containing a malicious link.

medium.com

Published on medium.com

Free Article Link: Click for free!

Ehtesham Ul Haq, 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 send phishing emails containing a malicious link in the sender's name field, potentially increasing the success of social engineering and abusing user trust.

What the attacker needed

A user account on the target site; ability to update profile first name; trigger an email such as password reset

The fix

The application should restrict name fields to valid character sets, block URL-like input, and escape user-generated content before rendering it in emails or the UI.

How it was found

  1. Log into a user account on the target site.
  2. Go to the profile update or settings page.
  3. Set the first name to a URL-like string.
  4. Save the changes.
  5. Trigger an email such as a password reset.
  6. Check the received email; the first name appears as a clickable link.

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 saves your first name. Later, it puts that name into emails it sends you, like a password reset email. The site did not check what you typed, so if you typed a web address, the email turned it into a clickable link. That means an attacker could make the site send emails with a link to a bad website.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.