XML Language Server (aka lsp4xml) before 0.9.1, as used in Red Hat XML Language Support (aka vscode-xml) before 0.9.1 for Visual Studio and other products, allows XXE via a crafted XML document, with resultant SSRF (as well as SMB connection initiation that can lead to NetNTLM challenge/response capture for password cracking). This occurs in extensions/contentmodel/participants/diagnostics/LSPXMLParserConfiguration.java.
The product processes an XML document that can contain XML entities with URIs that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output.
Link | Tags |
---|---|
https://github.com/angelozerr/lsp4xml/ | product |
https://github.com/redhat-developer/vscode-xml/ | third party advisory patch |
https://marketplace.visualstudio.com/items?itemName=redhat.vscode-xml | third party advisory |
https://github.com/angelozerr/lsp4xml/pull/566 | third party advisory patch |
https://github.com/angelozerr/lsp4xml/blob/master/CHANGELOG.md#others | third party advisory release notes |
https://www.shielder.it/blog/dont-open-that-xml-xxe-to-rce-in-xml-plugins-for-vs-code-eclipse-theia/ | third party advisory exploit |