Skip to content
Access control Write-up Intermediate

Authentication bypass vulnerabilities in TeamCity: everything you need to know

TeamCity On-Premises had authentication bypass flaws in how certain requests were handled, allowing unauthenticated attackers to reach authenticated endpoints. This could let them create admin accounts or tokens, or access limited endpoints to change settings and leak information.

Merav Bar Follow

Published on wiz.io

On March 4, 2024, JetBrains released a patch for two critical and high severity authentication bypass vulnerabilities — CVE-2024-27198 (CVSS score: 9.8) and CVE-2024-27199 (CVSS score: 7.3). Each of these vulnerabilities may enable an unauthenticated attacker who has HTTP(s) access to a TeamCity server to bypass…

Merav Bar, on wiz.io

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 flaw in how the BaseController class handled certain requests, allowing URL manipulation to reach authenticated endpoints without authentication.

Impact

Attackers could create administrator accounts or tokens for full control, or use path traversal to change settings and leak information, potentially causing denial of service or enabling eavesdropping; exploitation was observed in the wild.

What the attacker needed

HTTP(s) access to a vulnerable TeamCity server; no authentication required

The fix

It was fixed by upgrading to TeamCity 2023.11.4 or later, or by applying a security patch plugin as a workaround.

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 helps software teams build and test their code automatically. These bugs meant someone could skip the login step and act like an administrator, or reach some protected pages without logging in. That could let them take over the server or change its settings.

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.

More by Merav Bar

View all

27 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.