Skip to content
Business logic Write-up Beginner

How I found a loophole in Google’s region restrictions — and yes, it’s triaged now.

The Google AI Student Offer page, intended for U.S. users only, could be accessed by switching between accounts after connecting via a U.S. VPN. An attacker outside the U.S. could obtain the student offer (Gemini Advanced and extra storage) despite the regional restriction.

mfaizananwar Follow

Published on mfaizananwar.medium.com

I recently stumbled upon something juicy while testing Google’s student offer page. No fancy zero-days here — just good old geo-restriction logic gone wrong.

Muhammad Faizan Anwar, on mfaizananwar.medium.com

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 region check relied on session state that was not properly re-evaluated when switching accounts, allowing a U.S. VPN session to carry over.

Impact

An attacker outside the U.S. could obtain the student offer, gaining Gemini Advanced and extra storage, despite the regional restriction.

What the attacker needed

A Google account; a U.S. VPN; victim not needed

The fix

The text states the flaw is now patched, but does not describe the fix.

How it was found

  1. Open the offer page from outside the U.S. without a VPN and observe the block.
  2. Connect to a U.S. VPN and verify the IP address is in the U.S.
  3. Log in with one account and see the offer still blocked.
  4. Switch to a second account in the same browser session and see the offer button appear.
  5. Click the button, complete the OAuth flow, and receive confirmation.

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.

Google offered a student deal only to people in the United States. The page checked the visitor's location, but the check could be fooled by using a VPN (a tool that makes your internet connection appear to come from another country) and then switching between different Google accounts in the same browser. This let someone outside the U.S. claim the offer.

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.

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.