홈으로 돌아가기
Hacker News

VSCode 버그를 이용한 1-클릭 GitHub 토큰 탈취

1-Click GitHub Token Stealing via a VSCode Bug

612 points 95 comments ammar2 2026-06-03 00:29

댓글

7
Noumenon72 2026-06-03 12:06
ENGLISH (원문)
Thank you for essentially donating the time you spent on this exploit to raise awareness on improving VS Code's security response. You could have just given up on them but you're still trying to help.
zbentley 2026-06-03 12:14
ENGLISH (원문)
This 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. In a perfect world, it'd be awesome if the in-browser IDE launched with a temporary per-repo permission scope or token that allowed only pull and push to the repo in question; no github.com web session whatsoever. If you want the full GitHub web UI experience, well .... go back to github.com; make github.dev a single-repo service. I'm assuming that's a) inconvenient for users, b) hard to implement, and c) a historical assumption baked into a lot of the github.dev tooling, though. Ah well.
fg137 2026-06-03 12:17
ENGLISH (원문)
> To those folks, I am sorry, but this is one of the few levers I have to try to influence MSRC and the security posture of VSCode Someone is going to be blacklisted by Microsoft.
NagatoYuzuru 2026-06-03 12:21
ENGLISH (원문)
> the last time I interacted with MSRC regarding reporting a VSCode bug, it was a horrible experience where they silently fixed the bug Classic MSRC. It has figured out that researchers will report for free regardless. Why change?
NagatoYuzuru 2026-06-03 12:22
ENGLISH (원문)
*waifu PFP
owl57 2026-06-03 12:25
ENGLISH (원문)
If the malicious-npm-package-of-the-week is reading arbitrary files on your workstation, isn't it usually able to run git clone/push/whatever with your current credentials anyway?
pier25 2026-06-03 12:25
ENGLISH (원문)
The MSRC situation is really unbelievable. There are probably better sources but I think this video by The Primeagen is a good introduction. https://www.youtube.com/watch?v=9kxx5xp5nTQ

좋아요가 저장됐어요!

로그인하면 어디서나 확인하고
영구적으로 저장할 수 있어요.