Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elevation of Privilege Vulnerability #207491

Closed
justschen opened this issue Mar 12, 2024 · 0 comments
Closed

Elevation of Privilege Vulnerability #207491

justschen opened this issue Mar 12, 2024 · 0 comments
Assignees
Labels

Comments

@justschen
Copy link
Contributor

justschen commented Mar 12, 2024

VS Code - Elevation of Privilege Vulnerability

An elevation of privilege vulnerability exists in VS Code 1.87.1 and earlier versions for users of the code serve-web command. An attacker who has access to view process information from a lower-privilege account on a machine can inspect a connection token used to secure code server-web being run in an elevated process, and potentially access the server over the network.

Patches

The fix is available starting with VS Code 1.87.2. The fix (778a5ed) mitigates this attack by transmitting the connection token in an appropriately-permissioned file rather than as part of the process arguments.

Workarounds

Do not run code serve-web as an elevated user on a machine where untrusted users can view process information.

References

@justschen justschen added this to the February 2024 Recovery 2 milestone Mar 12, 2024
@microsoft microsoft locked and limited conversation to collaborators Jun 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants