TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

RCE in Visual Studio Code's Remote WSL for Fun and Negative Profit

327 pointsby gmemstrover 3 years ago

16 comments

2ionover 3 years ago
In a sense Microsoft forgot its own learnings. Because of exactly things like this they prevent UWP apps from connecting to localhost by default and make it very annoying to circumvent and from my experience, the circumvention is not exactly a stable setup. So they really don't want you to do that, and somebody thought enough to make it extra difficult. So, they have UWP, all those well thought-out policies, then make an editor ecosystem out of web technology and throw everything out of the window. No surprise from a $T company with more teams than countries on Earth that not everything is coordinated, but they should have a guy with the required knowledge and sensibilities on any major product team. Apps installed from their "store" are relatively safe, but then they put a (extension) store inside their app again, which is unsafe :/
评论 #29637682 未加载
Karlissover 3 years ago
Issues like this have been repeated countless times in various IDEs, debugger interfaces and local services using browser as UI. Developers need to stop using network sockets as IPC channels for local services unless browsers significantly increase the restrictions on cross site requests. Similar situation with regular CSRF attacks. And it needs to be opt out not opt in. As long it's a responsibility of developer to implement proper authentication checks for something they consider a local service vulnerabilities like this will keep appearing.
评论 #29636442 未加载
评论 #29636341 未加载
评论 #29636995 未加载
评论 #29636334 未加载
评论 #29684373 未加载
评论 #29636175 未加载
8organicbitsover 3 years ago
&gt; Does it fix the issues? Yes.<p>&gt; Do I think there are other security issues here and we can bypass this? Also, yes.<p>&gt; Do I want to spend more time doing free work for a company with a 2.5 TRILLION market cap? Hell, no.<p>Troubling.
评论 #29637253 未加载
moritonalover 3 years ago
Could someone with insight give an estimate for how much you could sell an exploit like this, which let&#x27;s you RCE a fair bunch of developer machines?<p>It feels that paired with a good blog (ironically about WLS) this could be very profitable, compared to the $0 MS awarded them.
评论 #29636091 未加载
评论 #29641052 未加载
评论 #29636267 未加载
评论 #29636671 未加载
azalemethover 3 years ago
The &quot;Your editor has DRM&quot; section alone [0] is enough for me to continue to advocate for a better user-friendly FOSS IDE, in addition to the wonderful giants of emacs &amp; vim, and to avoid the VS Code &quot;kool aid&quot;.<p>[0] <a href="https:&#x2F;&#x2F;parsiya.net&#x2F;blog&#x2F;2021-12-20-rce-in-visual-studio-codes-remote-wsl-for-fun-and-negative-profit&#x2F;#your-editor-has-drm" rel="nofollow">https:&#x2F;&#x2F;parsiya.net&#x2F;blog&#x2F;2021-12-20-rce-in-visual-studio-cod...</a>
评论 #29639131 未加载
评论 #29639530 未加载
评论 #29639110 未加载
magicconchover 3 years ago
Kudos to the author for a fantastic write up. The structure made reading it a really pleasant learning experience - a solid table of contents, an up-front summary, and a sensible list of prerequisites and instructions for following along.
Jerrrryover 3 years ago
Microsoft has the best bounty hunter program: go fuck yourself.<p>If you find a way to take over MS accounts, or force email swaps, or even gamertag shanaigans, there is too much money to be made, there is not even a point for a bug bounty.<p>It&#x27;s like a $40 reward for returning a purse filled with $250k.<p>I agree with OP: no more free bugs.
评论 #29637372 未加载
评论 #29641545 未加载
评论 #29639063 未加载
SahAssarover 3 years ago
Not making websockets follow the same-origin policy was a mistake.
评论 #29636312 未加载
评论 #29636421 未加载
评论 #29637803 未加载
bsenftnerover 3 years ago
I&#x27;ve only been using VSC for about 6 months. During my the first week of use, I noted how insecure all the plugins and their communications with the main application were set up. Dismayed, I moving the workstation to an airgapped portion of my environment, and the piece of shit would not work without a net connection. So I use VCE inside a VM now. My career includes working for security companies with sensitive information and documents... VSC needs some serious redesigning with multiple experienced security engineers on the team.
评论 #29637119 未加载
gigel82over 3 years ago
If I&#x27;m reading this right, it assumes the machine&#x27;s IP is publicly accessible over the internet; which I&#x27;m guessing -even with IPv6- is not the case in 99.999% of cases; who just exposes their development machine directly to the internet with a public IP?<p>Still bad, but not quite as bad as owning from the browser via localhost GET.
评论 #29637632 未加载
评论 #29640297 未加载
评论 #29637455 未加载
kerngover 3 years ago
A bug like this shows that there is probably no security reviews done at all in the VS Code team. This would be flagged right away in a threat model review. Quite worrying.<p>Also, strange that this doesn&#x27;t get a bug bounty payout - it&#x27;s very severe.
christophilusover 3 years ago
What is the best alternative for TypeScript development? My favorite light-weight editor is Kakoune, but it really doesn&#x27;t have enough plugins for the kind of work I do.
评论 #29641528 未加载
评论 #29641979 未加载
评论 #29638353 未加载
turminalover 3 years ago
&gt; Your editor has DRM<p>Lovely
mikotodomoover 3 years ago
I don&#x27;t get the video <a href="https:&#x2F;&#x2F;parsiya.net&#x2F;blog&#x2F;2021-12-20-rce-in-visual-studio-codes-remote-wsl-for-fun-and-negative-profit&#x2F;09-poc1.gif" rel="nofollow">https:&#x2F;&#x2F;parsiya.net&#x2F;blog&#x2F;2021-12-20-rce-in-visual-studio-cod...</a> He goes to the hacker website and then calculator opens?
评论 #29643301 未加载
FundementalBritover 3 years ago
I&#x27;d have taken a trip down to Buenos Aires and sold it.
评论 #29636081 未加载
评论 #29636293 未加载
symlinkkover 3 years ago
Is this specific to WSL or does it work with other Remote types (SSH)?