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.
- 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.
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.