1-Click GitHub Token Stealing via a VSCode Bug
61–70 of 116 posts
Re: 1-Click GitHub Token Stealing via a VSCode Bug
#62This is a very good writeup. Zooming way out (perhaps to the point of useless observation), it's a pity that the web embedded VSCode editor is signed into GitHub at all . Defense-in-depth or not, a huge vulnerability surface arises from that original sin. It'd be like if you had a god-permissioned GitHub API token stored in world-readable plaintext on your workstation for the malicious-NPM-package-of-the-week to find…
> it'd be awesome if the in-browser IDE launched with a temporary per-repo permission scope That's actually exactly what they do for codespaces. The token only has read/write on the repo you activated for the codespace [1]. They should definitely consider doing that for github.dev as well. [1] https://orca.security/resources/blog/hacking-github-codespac...
Re: 1-Click GitHub Token Stealing via a VSCode Bug
#63Re: 1-Click GitHub Token Stealing via a VSCode Bug
#64Small nitpick, but it's also possible to communicate by changing the location.anchor property (by either the iframe or its parent window.)
Re: 1-Click GitHub Token Stealing via a VSCode Bug
#65tl;dr: never press github.dev or open vscode.dev on a repo you don't trust
Re: 1-Click GitHub Token Stealing via a VSCode Bug
#66Re: 1-Click GitHub Token Stealing via a VSCode Bug
#67This is a very good writeup. Zooming way out (perhaps to the point of useless observation), it's a pity that the web embedded VSCode editor is signed into GitHub at all . Defense-in-depth or not, a huge vulnerability surface arises from that original sin. It'd be like if you had a god-permissioned GitHub API token stored in world-readable plaintext on your workstation for the malicious-NPM-package-of-the-week to find…
Re: 1-Click GitHub Token Stealing via a VSCode Bug
#68Re: 1-Click GitHub Token Stealing via a VSCode Bug
#69Re: 1-Click GitHub Token Stealing via a VSCode Bug
#70If you like VSCode but don't like Microsoft, try Zed (zed.dev).