VS Code Information Disclosure Vulnerability
A information disclosure vulnerability exists in VS Code 1.79.0
and earlier versions on Windows when file system operations are performed on malicious UNC paths. Examples include reading or resolving metadata of such paths. An authorised attacker must send the user a malicious file and convince the user to open it for the vulnerability to occur. Exploiting this vulnerability could allow the disclosure of NTLM hashes.
Patches
The fix is available starting with VS Code 1.79.1. It involved changes to VS Code as well as the node.js component that VS Code leverages for file system operations:
Workarounds
Do not open workspaces or files on UNC paths. Do not open workspaces or files that contain UNC paths as text.
References
VS Code Information Disclosure Vulnerability
A information disclosure vulnerability exists in VS Code
1.79.0
and earlier versions on Windows when file system operations are performed on malicious UNC paths. Examples include reading or resolving metadata of such paths. An authorised attacker must send the user a malicious file and convince the user to open it for the vulnerability to occur. Exploiting this vulnerability could allow the disclosure of NTLM hashes.Patches
The fix is available starting with VS Code 1.79.1. It involved changes to VS Code as well as the node.js component that VS Code leverages for file system operations:
16.17.1
normalizes paths and throws an error when using paths of the form\\?\globalroot
or\\?\global
Workarounds
Do not open workspaces or files on UNC paths. Do not open workspaces or files that contain UNC paths as text.
References