Security Researcher Finds Origin Bypass Flaw in OAuth SDK Used by Web3 Project
A security researcher discovered a critical vulnerability in an OAuth SDK during a review of a web3 application that used Google Sign-In. The SDK's postMessage listener accepted incoming messages from any origin without validating the event.origin field, meaning malicious pages could inject forged authentication data. Compounding the risk, the SDK generated OAuth request IDs using a simple incrementing counter rather than a cryptographically secure random value, making IDs trivially predictable. An attacker with another tab open could exploit both flaws together — predicting the next request ID and sending a spoofed message via window.opener.postMessage to hijack the authentication flow. The researcher responsibly disclosed the findings, highlighting how two individually subtle oversights can combine into a serious authentication bypass.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in