HTML Injection in meeting owner email
A user could set their first and last name to contain HTML tags, and when that user's calendar was disconnected, the notification email sent to the meeting owner included the unsanitised HTML in the name fields. An attacker could inject HTML into the email, potentially spoofing content or misleading the recipient.
Originally disclosed on Bugcrowd
- Accepted in 3 days
- Fixed in 33 days
- Disclosed after 3 months
Summary by HubSpot
It was possible for a user to change their name to include HTML. When that user's calendar was disconnected, the notification email included the HTML in the user's name fields. The issue is fixed.
Summary by x_bugcrowd
Can we disclose?!
Report details
-
Submitted
16 Apr 2022 01:40:51 UTC
-
Target Location
events.hubspot.com -
Target category
Other
-
VRT
Server-Side Injection > Content Spoofing > Email HTML Injection
-
Priority
P4
-
Bug URL
https://meetings-eu1.hubspot.com/MEETING -
Description
Hello Gents,
- While testing Hubspot, I found that meeting owner email could be injected with HTML code.
Steps to reproduce:
- Please login at https://app-eu1.hubspot.com.
- Navigate to https://app-eu1.hubspot.com/meetings/PORTAL-ID.
- Copy the meeting link and share it with the customers.
- As an attacker, request a new meeting.
- Inject First name and Last name with HTML tags.
- Owner will receive this malicious mail.
Proof of concept:
-
POC video in { 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 application did not sanitise or encode user-supplied name fields before including them in the notification email's HTML body.
Impact
An attacker could inject HTML into the notification email received by the meeting owner, potentially spoofing content or misleading the recipient; the text does not claim script execution or account compromise.
What the attacker needed
A HubSpot account; ability to request a meeting; victim is the meeting owner
The fix
The issue was fixed according to the summary.
How it was found
- Log in to the HubSpot application.
- Navigate to the meetings section for the portal.
- Copy the meeting link and share it with customers.
- As an attacker, request a new meeting.
- Enter HTML tags in the First name and Last name fields.
- The meeting owner receives the malicious email.
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 for a service, you often provide your name. If the service later puts that name into an email without cleaning it, someone could put special formatting codes (HTML) in their name. Those codes would then appear in the email, possibly changing how it looks or adding fake links.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.