HTML Injection in Mail BOX
A user's display name was not sanitised, so HTML placed in the profile name was rendered inside invitation emails sent to other users. An attacker could send a victim an invitation email containing injected HTML that redirects them to a malicious site.
codingninjablogs.tech
Published on codingninjablogs.tech
Let’s Assume the domain is portal.domain.com. I registered to an Account and Logged in.
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 application stored the profile name without sanitising it and inserted it unescaped into the HTML body of invitation emails.
Impact
An attacker could send a victim an invitation email containing injected HTML that redirects them to a malicious site; the report does not show script execution.
What the attacker needed
A free account; ability to send project invitations; victim opens the invitation email
How it was found
- Register an account and log in.
- In profile settings, change the display name to include HTML markup and save it.
- Use the option to send an invitation email to a valid address.
- Open the received invitation email and observe the injected markup rendered in place of the name.
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.
Many websites let you set a display name that is shown to other people. If the site does not clean that name before putting it into a web page or an email, any markup you type is treated as part of the page instead of plain text. Here the name was copied into invitation emails, so the person receiving the email saw the attacker's markup rather than just a name.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.