U.S. Dept Of Defense · Report #904064
Dashboard sharing enables code injection into ████ emails
Validstatus
highseverity
4upvotes
18 Feb 2021disclosed
How it was found
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
- Create an account or sign into ██████.
- Browse to ███████/█████
- Create a dashboard by clicking the dropdown menu and selecting
New Dashboard. ████ - Once you create the dashboard, go back to ███/██████ and select the dashboard you created.
- You should see a
shareicon in the top right. Click this and clickAdd groups and users. ███ - If you start typing in the
To:field, a list of names should populate. Select the name of an account you own. █████████ - Check the
Send an email invitation box. Populate theMessagefield with your spearphishing attempt (this can contain various HTML elements) and clickShare. ██████ - 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.