Skip to content
Access control Write-up Beginner

Bypassing Google Authentication on Periscope's Administration Panel

The Periscope admin panel used Google authentication with a domain restriction parameter that could be removed, and the application did not validate the returned user's domain. An attacker with any Google account could therefore access the administration panel and manage users and streams.

Jack Follow

Published on whitton.io

I haven’t blogged for quite some time, so I thought it was worth re-launching with an interesting, albeit simple, high-impact bug.

Jack, on whitton.io

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

The application relied on the hd parameter to restrict domains and did not validate the authenticated user's domain on callback.

Impact

An attacker with any Google account could access the administration panel and manage users and streams.

What the attacker needed

A Google account; access to the admin panel URL

The fix

Twitter fixed it by requesting an additional permission that includes the email address and correctly validating the user on callback, returning a 401 for invalid users.

How it was found

  1. Browse to the admin panel and get redirected to Google authentication.
  2. Remove the domain restriction parameter from the Google login URL.
  3. Log in with a Google account from a different domain and accept the authorisation prompt.
  4. Get redirected back to the admin panel with an authorisation code.
  5. Access the admin panel and manage users and streams.

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 you log in with Google, the website can ask Google to only allow accounts from a certain company domain. Here, the website trusted that restriction but never checked the answer itself. By removing the restriction from the login link, anyone with a normal Google account could get in.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by Jack

View all

14 more disclosed reports, best first.

More from Google

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.