Microsoft Azure VSTS CLI vstscli Uncontrolled Search Path Element Remote Code Execution Vulnerability
The Azure VSTS CLI installer loads a non-existent cloud resource that can be taken over by an attacker. An attacker could exploit this to execute arbitrary code on systems that depend on that resource.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to execute arbitrary code on affected installations of Microsoft Azure VSTS CLI. Authentication is not required to exploit this vulnerability.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker could execute arbitrary code on systems where the CLI is installed, but only if they successfully take over the abandoned cloud resource.
What the attacker needed
Install Azure VSTS CLI from MCR; attacker controls abandoned cloud resource
The fix
Microsoft issued an update to correct the vulnerability.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
When you install a program, it sometimes downloads extra files from the internet. Here, the installer looked for a file at a web address that no longer existed. An attacker could claim that address and put their own malicious file there, so the installer would run the attacker's code.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.