CVE-2024-27198 and CVE-2024-27199: JetBrains TeamCity Multiple Authentication Bypass Vulnerabilities
Two authentication bypass flaws in JetBrains TeamCity allowed an unauthenticated attacker to reach authenticated endpoints. The more severe one let an attacker create an administrator account or token, leading to full server compromise and possible supply chain attacks.
CVE-2024-27198 and CVE-2024-27199: JetBrains TeamCity Multiple Authentication Bypass Vulnerabilities (FIXED)
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 write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a request parameter named jsp was used to rewrite the internal view path without proper validation, and a path traversal issue let certain URLs bypass authentication checks.
Impact
An unauthenticated attacker could take complete control of the TeamCity server, including creating admin users or tokens, and the second flaw allowed limited information disclosure and system modification such as replacing the HTTPS certificate.
What the attacker needed
Network access to TeamCity web port; no authentication required
The fix
JetBrains released TeamCity 2023.11.4 which remediates both vulnerabilities.
How it was found
- Request a non-existent resource to trigger a 404 response.
- Add a query parameter named jsp containing the target authenticated path.
- Append a path parameter segment so the path ends with .jsp.
- Send the crafted request to reach the authenticated endpoint without credentials.
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 write-up has not been written yet. The Original tab links to the source.
TeamCity is a tool that builds and tests software. These bugs let someone skip the login check and act as an administrator, so they could take over the server and tamper with the software it builds.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.