A newly discovered vulnerability in GitHub's developer platform enables attackers to steal full OAuth tokens with a single click, granting them unauthorized access to user repositories and data. The attack exploits a flaw in the authentication flow used by GitHub Apps and OAuth integrations, allowing malicious actors to capture tokens when a developer clicks on a crafted link or visits a compromised page. Once stolen, the tokens can be used to clone private repositories, modify code, and escalate privileges. GitHub has been notified and is working on a patch, but users are advised to review active OAuth applications and revoke any suspicious tokens immediately.
[Image: Screenshot of a GitHub OAuth prompt] (Note: Image content not provided in raw data)
This vulnerability underscores the importance of safeguarding OAuth tokens and regularly auditing third-party app permissions. Developers should enable two-factor authentication and use token expiration policies to mitigate risk.