Skip to content
RCE Disclosed report Beginner

Dashboard sharing enables code injection into ████ emails

The dashboard sharing feature did not sanitise the invitation message before placing it into an email, so HTML elements were rendered in the recipient's mail. An attacker could send a believable spearphishing email from the vendor's own mail domain.

z32 Follow

Originally disclosed on HackerOne

  • Triaged in 38 hours
  • Fixed in 8 months
  • Disclosed after 8 months

Summary: An attacker is able to share their dashboard with other █████████ users. When sharing their dashboard, the message is not fully sanitized for HTML characters before sending to the recipient. This allows the attacker to craft a believable spearphishing e-mail coming from an e-mail address owned by the ███████.

Step-by-step Reproduction Instructions

  1. Create an account or sign into ██████.
  2. Browse to ███████/█████
  3. Create a dashboard by clicking the dropdown menu and selecting New Dashboard.

████ 4. Once you create the dashboard, go back to ███/██████ and select the dashboard you created. 5. You should see a share icon in the top right. Click this and click Add groups and users.

███ 6. If you start typing in the To: field, a list of names should populate. Select the name of an account you own.

█████████ 7. Check the Send an email invitation box. Populate the Message field with your spearphishing attempt (this can contain various HTML elements) and click Share.

██████ 8. The victim will receive an e-mail from ██████████ with the injected HTML. As you can see below, the <img> tag did not work correctly but the other formatting seemed to work fine. This allows the adversary to get very creative..

██████████ Note: the message above says "...shared with you by unagi unagi.", however an attacker could simply sign up with a first/last name of "████████" or something similar to make this more believable.

Suggested Mitigation/Remediation Actions

Sanitize all HTML tags prior to sending the e-mail to the recipient.

Impact

An adversary could conduct a spearphishing campaign from an ██████ mail server - the scale of effects would be dependent on the creativity of the attacker and the gullibility of the victim.

The original report as published on HackerOne, by z32. 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 invitation message was inserted into the outgoing email without HTML encoding or sanitisation.

What the attacker needed

A free account; attacker controls a recipient account; victim opens the invitation email

How it was found

  1. Create an account or sign in.
  2. Create a new dashboard from the dropdown menu.
  3. Open the dashboard and use the share icon to add groups and users.
  4. Select an account you own and tick the email invitation box.
  5. Put HTML content in the message field and click Share.
  6. The recipient receives an email from the vendor containing the injected HTML.

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.

When you share a dashboard, the site sends an email to the other person containing a message you typed. The site put that message into the email without cleaning it, so HTML markup (the code that formats web pages) was treated as real formatting instead of plain text. That let an attacker make a convincing fake email that appeared to come from the company's own address.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by z32

View all

18 more disclosed reports, best first.

More from U.S. Dept Of Defense

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.