Skip to content
Business logic Write-up Intermediate

I got emails - G Suite Vulnerability

G Suite allowed a user to configure mail routing for a domain they had signed up for but not yet verified, so mail sent to an address at that domain could be forwarded to the attacker's own inbox. An attacker could therefore receive email intended for a domain they did not own, such as a large company's domain.

Rojan Rijal Follow

Published on web.archive.org

After recent finding about Uber and SendGrid bug, I decided to check other third party applications that were also used for similar cases. During the investigation, some third party applications were found to be vulnerable including G Suite.

Rojan Rijal (@uraniumhacker), on web.archive.org

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 mail routing settings in G Suite did not enforce the domain ownership verification step that the rest of the signup flow required.

Impact

Email addressed to a domain the attacker did not own could be routed to the attacker's inbox, and the issue affected at least Facebook, Yelp and other third parties before being fixed.

What the attacker needed

A G Suite signup for a domain not owned; no domain verification completed; ability to send a test email

The fix

Google changed the advanced settings so that configuring routing without a verified domain now returns an error, and the issue was fixed.

How it was found

  1. Look up the target domain's DNS records and note that its mail is handled by G Suite.
  2. Sign up for G Suite using that domain, without completing ownership verification.
  3. Open the Default Routing tab in the Gmail advanced settings and configure a route to a personal address.
  4. Send a test email to an address at the target domain and confirm it arrives in the personal inbox.

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.

When a company uses Gmail for its email, Google needs proof that the company really owns the domain name before it handles its mail. The researcher signed up for such a domain without proving ownership, then set up a forwarding rule that should have been blocked. Because it was not blocked, email addressed to that domain could be sent on to his personal inbox.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More by Rojan Rijal

View all

20 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.