JetBrains TeamCity AgentDistributionSettingsController Cross-Site Scripting Vulnerability
The AgentDistributionSettingsController.doPost method in JetBrains TeamCity fails to properly validate the os parameter, allowing an attacker to inject arbitrary script. A remote attacker could execute script in the context of the current user if the victim visits a malicious page or opens a malicious file.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to execute arbitrary script on affected installations of JetBrains TeamCity. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.
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
Root cause
Likely the application fails to validate or encode the os parameter before including it in a response, leading to script injection.
Impact
An attacker could execute arbitrary script in the context of the current user, but the victim must visit a malicious page or open a malicious file.
What the attacker needed
Victim visits a malicious page; or opens a malicious file
The fix
JetBrains has issued an update to correct this 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.
This is a cross-site scripting (XSS) bug. A part of the TeamCity web application takes a value called 'os' from a request and puts it into a web page without checking it properly. An attacker can craft a link or file that makes the victim's browser run harmful code, which then acts as if it were the victim.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.