WebHackList

Preliminary research

Stealing GitHub tokens via VS Code webview keyboard event bubbling

1-Click GitHub Token Stealing via a VSCode Bug

Last synced: 5 December 2026.

VSCode webviews are cross-origin iframes, but to keep shortcuts working they forward their own keydown events to the host over postMessage, and the host cannot tell a synthetic event from a real keypress. Javascript in a notebook cell sends Ctrl+Shift+A to accept the recommended-extension prompt, installing a local workspace extension whose keybinding calls installExtension with skipPublisherTrust, and that extension reads github.dev's unscoped GitHub token.

Preserved copies · Ammar Askar · Original publication ↗

GitHub MD fileGitHub PDF file

Record

Document
1-Click GitHub Token Stealing via a VSCode Bug
Researcher
Ammar Askar
Published by
Ammar's Blog
Topic
Other

In the archive

Related sources

Tags

This page is the archive's own catalogue record. The research is the work of Ammar Askar, first published at the original source. Preserved copies are kept so the citation survives its host.