email field doesn't filtered against XSS
An email field in the invite flow did not filter or encode its contents, so a contact name containing HTML markup was rendered as live markup. An attacker could get script to run in the context of the invite page when the crafted contact was used.
- Triaged in 3 hours
- Fixed in 5 days
- Disclosed after 15 days
Hi, Pre-configuration, create new contact in Gmail with mail a"><img src=y onerror=prompt(...);>
- Go to Invites.
- Click on Invite Gmail Friends.
- Accept the pop up.
- XSS will activate on the email field.
Few issues continue during this issue:
- When you click on this email address you get failure on AJAX functionally.
- If you try to do the same scenario I describe the system throw Error
The website encountered an unexpected error. Please try again later.
Sasi
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
Impact
Script could run in the invite page, and the crafted value also broke the page's AJAX behaviour and caused an error page.
What the attacker needed
A Gmail account; a contact with crafted markup; using the invite flow
How it was found
- Create a new contact in Gmail whose name contains HTML markup.
- Open the Invites section.
- Choose the option to invite Gmail friends.
- Accept the pop-up.
- The markup runs in the email field.
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.
A web page normally shows text as text. Here the site took a value that came from a user's contact list and put it into the page as if it were part of the page's own code. Because of that, a name that looks like code gets run by the browser, which is called cross-site scripting.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.