Skip to content
XSS Disclosed report Beginner

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.

Sasi Levi Follow

Originally disclosed on HackerOne

  • 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(...);>

  1. Go to Invites.
  2. Click on Invite Gmail Friends.
  3. Accept the pop up.
  4. XSS will activate on the email field.

Few issues continue during this issue:

  1. When you click on this email address you get failure on AJAX functionally.
  2. 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

The original report as published on HackerOne, by sasi2103. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. Create a new contact in Gmail whose name contains HTML markup.
  2. Open the Invites section.
  3. Choose the option to invite Gmail friends.
  4. Accept the pop-up.
  5. 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.

More by Sasi Levi

View all

5 more disclosed reports, best first.

More from Uzbey

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.