Skip to content
XSS Disclosed report Beginner

XSS via Email Link

An email containing a hyperlink with a javascript: URI could be sent to a team email address, and when the email was viewed in the web application with the original HTML view, clicking the link executed JavaScript. This allowed an attacker to run script in the context of the webmail application.

prakharprasad Follow

Originally disclosed on HackerOne

  • Triaged in 34 hours
  • Fixed in 2 days
  • Disclosed after 3 days

Hey,

So, we can send emails to team email address like - [email protected] . In the email body if there is a hyperlink pointing to javascript:alert(0); or any other javascript: URI then open viewing the email in your web application with original HTML view and then on clicking it will trigger javascript execution, that is XSS.

Thanks!

Attachments

Screenshot_2014-04-18_04.15.46.png
Screenshot_2014-04-18_04.15.46.png From the original on HackerOne

The original report as published on HackerOne, by prakharprasad. 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

What the attacker needed

Ability to send email to a team address; victim views email in original HTML mode; victim clicks the link

How it was found

  1. Send an email to a team email address with a hyperlink using a javascript: URI in the body.
  2. Open the email in the web application using the original HTML view.
  3. Click the hyperlink to trigger JavaScript execution.

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 javascript: link is a special kind of link that runs code instead of opening a web page. The email app showed the raw HTML of the message and let that link work, so clicking it ran the attacker's code inside the email website. This is cross-site scripting (XSS): running someone else's code in a trusted site.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by prakharprasad

View all

17 more disclosed reports, best first.

More from Respondly

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.