Azure DevOps and Team Foundation Server Remote Code Execution Vulnerability (CVE-2019-1306)
Azure DevOps Server and Team Foundation Server did not validate input properly when indexing files in a repository. An attacker who uploaded a specially crafted file and waited for indexing could execute code on the server as the service account.
Originally disclosed on Microsoft
Description
A remote code execution vulnerability exists when Azure DevOps Server (ADO) and Team Foundation Server (TFS) fail to validate input properly. An attacker who successfully exploited this vulnerability could execute code on the server in the context of the TFS or ADO service account. To exploit the vulnerability, an attacker would need to upload a specially-crafted file to a vulnerable ADO or TFS server repo and wait for the system to index the file. The security update addresses the vulnerability by correcting how ADO and TFS index files.
Team Foundation Server
Team Foundation Server
Microsoft
Microsoft
Customer Action Required
Yes
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
Root cause
Likely the file indexing component processed repository content without adequate validation, allowing crafted input to be executed.
Impact
An attacker could execute code on the server with the privileges of the TFS or ADO service account.
What the attacker needed
Access to upload files to a repo; server indexes uploaded files
The fix
The vulnerability was fixed by a security update that corrects how ADO and TFS index files.
How it was found
- Upload a specially crafted file to a repository on a vulnerable server.
- Wait for the system to index the uploaded file.
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.
These are Microsoft products teams use to store and manage source code. The server reads and processes files that people upload to a repository, and it did not check those files carefully enough. A malicious file could therefore make the server run the attacker's code, giving the attacker the same powers as the account the service runs under.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.