Skip to content
Open redirect Write-up Beginner

Facebook mailto injection leads to social engineering & spam attack

The cancel_uri parameter on Facebook's mobile friend-tagging page accepted non-HTTP schemes such as mailto, so an attacker could craft a link that pre-filled an email draft. When a victim clicked the Cancel button, their mail client opened with attacker-controlled recipient, subject, body and attachment, which could be used for social engineering.

Rahul Kankrale Follow

Published on medium.com

#### Rahul Kankrale

Rahul Kankrale, 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 cancel_uri parameter was not restricted to http or https URLs, so other schemes such as mailto were passed through to the Cancel button's link.

Impact

An attacker could open a pre-filled email draft on the victim's device to trick them into handing over credentials, though Facebook treated it as an accepted risk because social engineering was involved.

What the attacker needed

Victim clicks a crafted link; victim clicks the Cancel button; victim has a mail client configured

How it was found

  1. Open the friend-tagging selector on the mobile Facebook site and note the cancel_uri parameter in the URL.
  2. Replace the cancel_uri value with a mailto link carrying recipient, subject, body and attachment values.
  3. Send the crafted URL to a victim and have them click the Cancel button.
  4. The victim's email client opens with the attacker's pre-filled content.

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.

Some web pages take a link from the address bar and use it as the place a button sends you. Here that link was not limited to normal web addresses, so it could be an email link instead. The attacker fills in the email's recipient, subject and text, and the victim sees a ready-made message that looks like it came from the site.

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 Rahul Kankrale

View all

7 more disclosed reports, best first.

More from Meta

View all

The newest disclosed reports for this program.

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.