None
EN
Escaping well-configured VSCode extensions (for profit)
['Vasco Franco']
The Trail of Bits Blog
In this post, we’ll demonstrate how I bypassed a Webview’s localResourceRoots by exploiting small URL parsing differences between the browser—i.e., the Electron-created Chromium instance where VSCode and its Webviews run—and other VSCode logic and an over-reliance on the browser to do path normalization. As we’ve seen, even decoding the path with a call to decodeURIComponent(path) was enough to fully bypass the localResourceRoots feature since other parts of the code had assumptions that the browser would have normalized the path. As we’ve seen, even decoding the path with a call to was enough to fully bypass the feature since other parts of the code had assumptions that the browser would have normalized the path.