Skip to content
UI spoofing Write-up Intermediate

$6,200 for an Invisible Button: Clickjacking an OAuth Consent Screen Into Account Takeover

The OAuth consent page lacked framing protection, so an attacker could embed it invisibly over a decoy page and trick a logged-in user into clicking 'Allow'. This granted a malicious third-party application persistent access to the victim's documents, calendar and contacts.

T4nv1 Follow

Published on medium.com

Clickjacking has a reputation problem. Most testers treat it as a box to check — send a request, see if X-Frame-Options is missing, write a low-severity finding, move on.

T4nv1, on 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

The OAuth consent page sent neither an X-Frame-Options header nor a frame-ancestors CSP directive, so it could be embedded in an attacker-controlled iframe.

Impact

Any authenticated user who visits the attack page while logged in could be tricked into granting a malicious third-party application persistent access to their documents, calendar and contacts, with no visible sign and no easy way to notice it.

What the attacker needed

Victim logged into the target; victim clicks a decoy button; attacker registers an OAuth client; attacker hosts the attack page

The fix

Wavecrest added the missing frame-protection header to the consent page within a week, and later shipped an extra confirmation step for broad-scope consent plus email notifications for new application grants.

How it was found

  1. Load the OAuth consent page inside an iframe on a page you control and confirm it renders.
  2. Register a third-party OAuth client requesting broad scopes such as documents, calendar and contacts.
  3. Build a decoy page with a visible button and place a fully transparent iframe of the consent page on top, aligned so the real Allow button sits under the decoy button.
  4. While logged into the target in the same browser, open the attack page and click the decoy button.
  5. Check the account's connected-applications settings to confirm the OAuth client now has access.

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.

Clickjacking is when a malicious page puts an invisible copy of a real website's button over something you want to click, so your click goes to the hidden button instead. Here the hidden button was an OAuth consent screen's 'Allow' button, which lets an outside app read your files, calendar and contacts. Because the page could be loaded inside another site, a single misdirected click silently gave the attacker's app lasting access.

What is UI spoofing?

The interface lies to the user: a framed page catches their clicks, or a browser shows the wrong address or a fake prompt. Paid when it leads to a sensitive action or convincing phishing.

More by T4nv1

View all

113 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Clickjacking and UI spoofing

The lesson behind this report.

The interface lies to the user: a framed page catches their clicks, or a browser shows the wrong address or a fake prompt. Paid when it leads to a sensitive action or convincing phishing.