VS Code Zero-Day Can Steal GitHub OAuth Tokens via Malicious Link

· Original article ↗

Summary

Researcher Ammar Askar released a proof-of-concept for an unpatched VS Code flaw that can steal GitHub OAuth tokens through a malicious link and enumerate accessible private repositories. Clearing github[.]dev site data can reduce risk.

Key points

  • Researcher Ammar Askar released proof-of-concept code for an unpatched VS Code vulnerability with no assigned CVE.
  • The exploit abuses the sandboxed webview message-passing system in github[.]dev to install a malicious extension.
  • The extension can extract a GitHub OAuth token and use the GitHub API to enumerate private repositories accessible to the victim.
  • The article says users can reduce risk by clearing browser cookies and local site data for github[.]dev, which prompts a sign-in warning when an exploit link is opened.
  • Askar said he notified GitHub shortly before public disclosure and cited a prior negative experience with Microsoft's security response process.

Article Details

Vulnerability Types
  • Flaw in VS Code’s sandboxed webview message-passing system
Exploitation Status
unknown
Exploit Availability
public_poc
Patch Status
unavailable
Workarounds
  • Clear cookies and local site data for github.dev in the browser.

MITRE ATT&CK

People

Vendors

Products

Related Articles