Self-XSS in mails sent by [email protected]
A user's display name was inserted without sanitisation into marketing emails sent by the company, so a name containing HTML and script markup appeared as live markup in the message body. If a mail client rendered that HTML and ran scripts, the injected JavaScript could execute in the context of the email.
- Triaged in 34 hours
- Fixed in 3 months
- Disclosed after 4 months
Summary by the program
@00day has reported a missing sanitization of names included in mails sent by [email protected].
If an user has configured their name to include a XSS payload this would be included within the mail sent to the user. This could lead to Javascript getting executed if the mail client is configured to execute Javascript. Due to the fact that this is input supplied by the user themselves we do consider this a low severity impact configuration issue.
We have been working together with the third-party providing the [email protected] service to us to make sure that in the future new user names are not used in vulnerable contexts like this. Unfortunately this does not apply to already created user names.
The report
Hello i create account with username have a payload code "><script>alert(1)</script>, and i always when i get mail from [email protected] i get mail win inject the code payload (html code inject) From: ownCloud [email protected] Reply-To: [email protected] To: [email protected] Message-ID: 1443803020209.163f96fc-108e-42bf-8c10-86406627607e@smtp.hubapi.com Subject: ownCloud Security & Encryption 2.0; A Technical Overview MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2297473_416570165.1443803059574" List-Unsubscribe: mailto:[email protected], <http://t.hsms06.com/e1t/c/*W4Zt7h03lnvKlW7vlbtK3d_CYy0/*W48wfbt6qPs7GW8WTnbw5F30_R0/ ------=_Part_2297473_416570165.1443803059574 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable
Hi "><img src=3D"c" onerror=3Dalert(1)><script>alert(1)</script>,
PoC image
Thanks
Hadji Samir
Attachments


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 third-party email service inserted the user-supplied display name into the HTML body of outgoing mail without encoding it.
Impact
Script execution could occur only if the recipient's mail client renders HTML and runs JavaScript, and the injected value is the user's own name, so the program rated it a low-severity configuration issue.
What the attacker needed
User controls their own display name; victim's mail client runs scripts
The fix
The company worked with the third-party email provider so that new user names are no longer used in vulnerable contexts, though existing names were not corrected.
How it was found
- Create an account whose name contains HTML and script markup.
- Wait for or trigger an email from the company's hello address.
- Open the email and observe the name rendered as markup rather than plain text.
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 sign up, you give a name, and the site later puts that name into emails it sends you. Here it did so without cleaning it, so text that looks like web page code was treated as real code by the email. If your email program displays such code and runs scripts, the script could run on your machine inside that message.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.