Skip to content
Open redirect Disclosed report Beginner

mailto: link injection on https://hackerone.com/directory

The directory search page built a mailto: link from the user's search query without sanitising it, so extra mail parameters could be injected into the link. An attacker could craft a link that makes a victim send an email with a spoofed subject, body and copied recipients.

ashesh Follow

Originally disclosed on HackerOne

  • Triaged in 18 hours
  • Fixed in 38 hours
  • Paid in 4 days
  • Disclosed after 4 days

I just found that entering a non-existing porogram returns the following response:

The Directory doesn't have a profile matching these criteria.

If an organization has published security contact information or a vulnerability disclosure policy, please let us know.

The bold part has a mailto: link which is in following format:

mailto:[email protected]?subject=Directory:<PROGRAM>

Now i tried the following URL which did my Spoofing Job.

POC Link

  1. The user doesn't see the whole search term , so he thinks he is Helping hackerone add a new program.

  2. Now he sends email (hackeone thretens not to change anything in email.

  3. Unexpected action happens like Payemnt method chnage etc.

The original report as published on HackerOne, by ashesh. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the search query was inserted into the mailto: link without encoding, allowing extra mail header parameters to be appended.

Impact

A victim could be tricked into sending an email with a spoofed subject and body to recipients chosen by the attacker, potentially leading to unintended actions.

What the attacker needed

Victim clicks a crafted link; victim's mail client opens the link

How it was found

  1. Enter a crafted search query on the directory page that contains extra mail parameters.
  2. The page shows a mailto: link built from that query.
  3. The victim clicks the link and their mail client opens with the attacker's subject, body and copied recipients.

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 report has not been written yet. The Original tab links to the source.

A mailto: link is a web link that opens the user's email program with a pre-filled message. Here the site put whatever the visitor typed into the search box straight into that link, so a crafted search address could add extra fields like a hidden recipient or a fake message body. The victim would only see a normal-looking search result and might send the prepared email without realising.

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 ashesh

View all

19 more disclosed reports, best first.

More from HackerOne

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.