Skip to content
Info disclosure Disclosed report Intermediate

GDrive Access Token Leak via PostMessage

A Google Drive access token could leak because the origin check on incoming postMessage events used a misconfigured regular expression. An attacker could potentially obtain the token and access the user's Drive data.

mdakh404 Follow

Originally disclosed on Bugcrowd

Bounty$550 Medium View original
  • Accepted in 4 days
  • Fixed in 2 months
  • Disclosed after 3 months

Summary by Dropbox

This report demonstrated a way to bypass filtration that could lead to information disclosure. A fix for the issue has been released and it was applied for existing users through an automatic update.

Summary by mdakh404

A Gdrive access token was leaked due to a PostMessage misconfiguration, the regex used to validate the origin assumed to received the message was misconfigured.

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

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

Root cause

Likely the origin validation regex was too permissive, allowing messages from unintended origins to be accepted.

Impact

An attacker could obtain a Google Drive access token, potentially leading to information disclosure; the report does not detail the full extent.

What the attacker needed

Victim visits a malicious page; postMessage origin check bypass

The fix

The issue was fixed and applied to existing users through an automatic update.

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.

Web pages can send messages to each other using a browser feature called postMessage. The receiving page is supposed to check who sent the message by looking at the sender's origin (the website address). Here that check used a flawed pattern match, so a page from the wrong site could pass the check and receive a secret access token.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by mdakh404

View all

2 more disclosed reports, best first.

More from Dropbox

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.