Threat reportVulnerabilityTL-2026-4869
AI-Driven Red-Team Chain Against AWS CI/CD: TeamCity CVE-2024-27198 Auth Bypass to IMDS Credential Theft and Cloud Pivot (ProjectDiscovery Neo)
ProjectDiscovery documents an autonomous AI red-team engagement (Neo) in a simulated AWS lab: a JetBrains TeamCity 2023.11.2 authentication bypass (CVE-2024-27198), EC2 IMDSv1 credential theft, forged-token reuse, IAM/S3/SSM enumeration, and private-subnet lateral movement via a build agent. The post is a controlled methodology demonstration, not a report of in-the-wild exploitation of this exact chain — though CVE-2024-27198 itself has been mass-exploited since March 2024 and sits in the CISA KEV catalog. First disclosed .
Key facts
| Identifiers | TL-2026-4869, CVE-2024-27198, CVE-2024-27199 |
|---|---|
| Severity | HIGH |
| CVSS | 9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) |
| First disclosed | |
| Exploitation status | Linked CVE exploited in the wild; Listed in CISA KEV: CVE-2024-27198 (added ), CVE-2024-27199 (added ) |
| EPSS | CVE-2024-27199: 99.9% (99.9th percentile); CVE-2024-27198: 99.9% (99.9th percentile) |
| Affected products | JetBrains TeamCity On-Premises |
| Weaknesses (CWE) | CWE-288 |
| Malware | Bianlian, Jasmin, xmrig |
| Tools | Cobalt Strike, Neo (ProjectDiscovery AI red-team agent), SparkRAT |
| MITRE ATT&CK techniques | T1021 Remote Services, T1046 Network Service Discovery, T1059.004 Command and Scripting Interpreter: Unix Shell, T1078.004 Valid Accounts: Cloud Accounts, T1087.004 Account Discovery: Cloud Account, T1098 Account Manipulation, T1136.001 Create Account: Local Account, T1190 Exploit Public-Facing Application, T1530 Data from Cloud Storage, T1550 Use Alternate Authentication Material, T1552.001 Unsecured Credentials: Credentials In Files, T1552.005 Unsecured Credentials: Cloud Instance Metadata API and 2 more in the attack flow |
| Motivation | UNKNOWN |
| Target sectors | technology, software-development, cloud-services |
| Target regions | Global |
| Detection rules | 9 (1 shown free) |
| Sources | 7 cited sources |
Detection coverage
As of 2026-10-31, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-4869 across Splunk SPL, Microsoft KQL and Sigma, covering 17 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.
Free detection: TeamCity CVE-2024-27198 jsp Parameter Authentication Bypass Request (TL-2026-4869)
Detects HTTP requests to a JetBrains TeamCity server that abuse the CVE-2024-27198 alternative-path authentication bypass: a non-existent path carrying a jsp= query parameter that points at an authenticated /app/rest/ API path and ends in the ;.jsp path-parameter suffix (for example GET /hax?jsp=/app/rest/server;.jsp). This is the initial-access step of the AI-driven red-team chain and of the mass exploitation CISA lists in KEV; it yields unauthenticated superadmin API access.
- Languages: Splunk SPL, Microsoft KQL, Sigma
- ATT&CK: T1190
- Data sources: splunk:index=web, sourcetype=access_combined, sourcetype=tomcat:access, teamcity access logs
- Severity: critical
- Confidence: high
Splunk SPL
index=web (sourcetype=access_combined OR sourcetype=tomcat:access OR sourcetype=teamcity:access) jsp
| eval req=coalesce(uri, url, _raw)
| where match(req, "(?i)[?&]jsp=/?[^& ]*;[.]jsp") OR match(req, "(?i)/app/rest/[^? ]*;[.]jsp")
| stats count AS hits min(_time) AS first_seen max(_time) AS last_seen values(method) AS methods values(status) AS statuses values(req) AS requests BY src, dest
| convert ctime(first_seen) ctime(last_seen)
| sort - hitsMicrosoft KQL
CommonSecurityLog
| where TimeGenerated > ago(24h)
| where isnotempty(RequestURL)
| extend Url = tostring(RequestURL)
| where Url matches regex @'(?i)[?&]jsp=/?[^& ]*;[.]jsp' or Url matches regex @'(?i)/app/rest/[^? ]*;[.]jsp'
| summarize Hits = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated), Methods = make_set(RequestMethod), Requests = make_set(Url, 20) by SourceIP, DestinationIP, DestinationPort
| order by Hits descSigma
title: TeamCity CVE-2024-27198 jsp Parameter Authentication Bypass
id: 3a9d4e10-6b72-4c58-8f1d-2e7b5c0a9d11
status: experimental
description: Detects requests to JetBrains TeamCity carrying the CVE-2024-27198 jsp= query parameter with a ;.jsp suffix that routes an unauthenticated request to an authenticated REST API path
references:
- https://www.rapid7.com/blog/post/2024/03/04/etr-cve-2024-27198-and-cve-2024-27199-jetbrains-teamcity-multiple-authentication-bypass-vulnerabilities-fixed/
- https://nvd.nist.gov/vuln/detail/CVE-2024-27198
author: Threadlinqs Team
date: 2026/10/31
tags:
- attack.initial_access
- attack.t1190
- cve.2024.27198
logsource:
category: webserver
detection:
selection_query:
cs-uri-query|contains|all:
- 'jsp='
- ';.jsp'
selection_stem:
cs-uri-stem|contains|all:
- '/app/rest/'
- ';.jsp'
condition: 1 of selection_*
falsepositives:
- Vulnerability scanners and authorized penetration tests that fingerprint CVE-2024-27198
level: highKnown false positives:
- Authorized vulnerability scans or red-team exercises that fingerprint CVE-2024-27198 against TeamCity
- Security-validation tooling run by the internal AppSec team against the build server
Tuning notes: Adjust index and sourcetype to where TeamCity or its reverse proxy access logs land. Exclude scanner source IPs via a lookup. Any hit against a server older than 2023.11.4 should be treated as a likely compromise and followed by a review of new users and API tokens.
- TeamCity CVE-2024-27199 Path Traversal Authentication Bypass · unlock with TL Creds
- TeamCity Build Step Running Cloud Credential Harvesting Commands · unlock with TL Creds
- Instance-Role Session Bulk S3 Object and SSM Parameter Reads · unlock with TL Creds
- TeamCity Superadmin Token or User Creation via Authentication Bypass · unlock with TL Creds
- TeamCity Build Parameter Secret Read and Debug SQL Endpoint Access · unlock with TL Creds
- Build Host Connection to Internal API Port [indicator] or Community-Observed C2 Infrastructure · unlock with TL Creds
- EC2 IMDS Credential Request from Build Host (TeamCity Build Step, [indicator]) · unlock with TL Creds
- EC2 Instance-Role Credentials Used from Multiple Sources with Discovery or Secret Reads (TL-2026-4869) · unlock with TL Creds
Indicators of compromise
As of 2026-10-31, Threadlinqs Intelligence tracks 17 indicators of compromise for TL-2026-4869.
Technical analysis
On 2026-05-21, ProjectDiscovery (author Prince Chaddha) published a walkthrough of its autonomous AI red-team agent, Neo, compromising a simulated AWS environment end to end in roughly 2.5 hours with no human intervention between phases. The initial target was a JetBrains TeamCity On-Premises 2023.11.2 (build 147486) server exposed on port 8111 and left unpatched against CVE-2024-27198. Neo reached superadmin access in approximately 82 seconds.
CVE-2024-27198 (CVSS 3.1 9.8, CWE-288, reported by Rapid7 on 2024-02-20 and patched by JetBrains in 2023.11.4 on 2024-03-04) is an alternative-path authentication bypass. Per Rapid7's technical disclosure, the flaw lives in the BaseController class of web-openapi.jar, specifically updateViewIfRequestHasJspParameter: a request that (1) targets a non-existent resource returning HTTP 404, (2) carries a query parameter named jsp holding an authenticated API path, and (3) appends a path-parameter segment ending in `.jsp`, is routed to the authenticated path without a session. The canonical fingerprinting request is `GET /hax?jsp=/app/rest/server;.jsp`. A companion flaw, CVE-2024-27199 (CVSS 7.3), achieves a similar effect through classic `../` path traversal under prefixes such as `/res/`, `/update/`, and `/.well-known/acme-challenge/` (e.g. `/res/../admin/diagnostic.jsp`), and can be used to overwrite the HTTPS certificate or leak diagnostic data.
In the Neo engagement, the agent used the `jsp` bypass to mint a persistent superadmin API token (`POST /hax?jsp=/app/rest/users/id:1/tokens/{tokenName};.jsp`) that survived server restarts, then read a project's build configuration parameters (`GET /app/rest/projects/id:{projectId}/parameters;.jsp`) and recovered a production database connection string with a plaintext password, a base64-encoded SSH deploy key, a JWT signing secret, and a live third-party payment API key — all stored in plaintext inside TeamCity build configuration.
Because the TeamCity host still had IMDSv1 enabled, Neo created a new build step that queried the EC2 Instance Metadata Service (link-local address 169.254.169.254) and obtained short-lived AWS STS credentials tied to an over-permissioned CI/CD IAM role (S3 read, SSM Parameter Store read, EC2 describe, RDS describe) valid for more than five hours. With those credentials it pulled a compressed SQL database backup containing roughly 1,000 customer PII records (names, emails, phone numbers, partial SSNs, partial card numbers, subscription tier, MRR) from one S3 bucket, found a legacy, un-migrated 2022 configuration file in a build-artifacts bucket containing static long-term AWS access keys plus a monitoring-platform API key and a chat-webhook URL, and enumerated multiple SSM Parameter Store entries (database password, JWT secret duplicate, payment API key, email-provider key, incident-paging key, an internal API hostname, and an RDS endpoint).
Neo then used the previously extracted JWT signing secret to forge an admin-role bearer token offline and executed an arbitrary bash build step from the CI agent to reach a private-subnet internal REST API on port 5000 that had no public IP and relied on network placement rather than authentication for protection. The forged token was accepted by an unauthenticated `/admin` endpoint, exposing an employee roster with salaries, production database connection details, and a confirmed customer count of 847,295 records. A separate `/api/v1/orders` endpoint concatenated the JWT `sub` claim directly into a SQL query (confirmed via an error message leaking the query structure) but was not exploited further because database access was already established through other means. Finally, Neo located a TeamCity internal.properties flag (`rest.debug.database.allow.query.prefixes=select`) enabling an undocumented debug SQL endpoint and used the earlier admin token to run a SELECT against the TeamCity users table, extracting bcrypt-hashed credentials for three accounts; the hashes used an outdated, weak cost factor but were not cracked during the engagement.
The findings illustrate a now-familiar real-world pattern: CVE-2024-27198 and CVE-2024-27199 were mass-exploited beginning around 2024-03-06, with signs of rogue administrative user creation observed across roughly 1,400 internet-facing TeamCity instances within days of disclosure, prompting CISA to add CVE-2024-27198 to the Known Exploited Vulnerabilities catalog on 2024-03-07. Separately reported real-world post-exploitation on compromised TeamCity servers (via this and the related CVE-2023-42793) has included rogue admin account creation, deployment of the open-source Jasmin ransomware and the BianLian ransomware group's extortion operations, XMRig cryptomining, the SparkRAT remote access tool, and Cobalt Strike beacons — none of which were part of the ProjectDiscovery lab engagement itself, but which establish the real blast radius of leaving this CVE unpatched.
MITRE ATT&CK techniques by tactic:
Lateral Movement
Discovery
T1046 Network Service Discovery; T1087.004 Account Discovery: Cloud Account; T1580 Cloud Infrastructure Discovery
Execution
T1059.004 Command and Scripting Interpreter: Unix Shell
Privilege Escalation
T1078.004 Valid Accounts: Cloud Accounts
Persistence
T1098 Account Manipulation; T1136.001 Create Account: Local Account
Initial Access
T1190 Exploit Public-Facing Application
Collection
lateral-movement
T1550 Use Alternate Authentication Material
Credential Access
T1552.001 Unsecured Credentials: Credentials In Files; T1552.005 Unsecured Credentials: Cloud Instance Metadata API; T1606 Forge Web Credentials
Remediation
Patches
- JetBrains TeamCity On-Premises 2023.11.4 (fixes CVE-2024-27198 and CVE-2024-27199)
Immediate actions
- Upgrade JetBrains TeamCity On-Premises to 2023.11.4 or later immediately, without waiting for a regular patch cycle
- Rotate every credential ever exposed through TeamCity build configuration or parameters: database passwords, SSH deploy keys, JWT signing secrets, third-party API keys
- Disable or restrict the IMDSv1 fallback on all EC2 instances and enforce IMDSv2 with HttpTokens=required
- Audit TeamCity server, teamcity-javaLogging, and teamcity-server.log for the `;.jsp?jsp=` request pattern, unexpected plugin uploads, and unexplained new user/token creation
Workarounds
- If immediate patching is not possible, block external access to TeamCity on port 8111 and restrict to a VPN/allowlisted network while patching is scheduled
Longer-term hardening
- Scope CI/CD IAM roles to least privilege and separate backup-bucket read access from build-execution roles
- Remove or gate `rest.debug.database.allow.query.prefixes` and all debug endpoints before promoting TeamCity configuration to production
- Require authentication/authorization checks on every internal service regardless of network placement — do not rely on private-subnet isolation alone
- Parameterize all SQL queries and stop concatenating JWT claims or other user-controlled input into SQL
- Centralize secrets in a managed secrets manager (not build parameters, S3, or bootstrap scripts) with per-consumer scoping
- Increase bcrypt work factor for stored authentication credentials beyond legacy defaults
Affected and fixed versions
- JetBrains — TeamCity On-Premises
Vulnerable versions: all versions prior to 2023.11.4; 2023.11.2 (build 147486, used in the demonstrated engagement)
Fixed in: 2023.11.4 and later
Timeline
- Rapid7 privately reports CVE-2024-27198 and CVE-2024-27199 to JetBrains.
- Rapid7 publishes full technical disclosure of CVE-2024-27198 and CVE-2024-27199, including exploitation mechanics.
- JetBrains releases TeamCity On-Premises 2023.11.4, fixing both authentication-bypass vulnerabilities, without full coordination with Rapid7 on disclosure timing.
- The Hacker News and other outlets report the critical TeamCity authentication bypass to a wide security audience.
- Mass exploitation begins; signs of rogue administrative user creation are observed across roughly 1,400 internet-facing TeamCity instances.
- CISA adds CVE-2024-27198 to the Known Exploited Vulnerabilities catalog, setting a remediation due date of 2024-03-28.
- SecurityWeek and GuidePoint Security report BianLian ransomware operators and other actors exploiting the TeamCity flaws for ransomware, DDoS staging, and rogue account creation.
- ProjectDiscovery publishes a methodology post describing its autonomous AI red-team agent, Neo, chaining CVE-2024-27198 through IMDS credential theft to full simulated AWS environment compromise in a controlled lab.
Sources cited
- NVD - CVE-2024-27198 Detail NVD (NIST) · Advisory · 2024-03-04
- CISA Known Exploited Vulnerabilities Catalog - CVE-2024-27198 CISA · Government advisory · 2024-03-07
- ETR: CVE-2024-27198 and CVE-2024-27199 JetBrains TeamCity Multiple Authentication Bypass Vulnerabilities (Fixed) Rapid7 · Research · 2024-03-04
- JetBrains Security Issues Fixed / TeamCity Advisory jetbrains.com · Vendor report · 2024-03-04
- Red-Teaming Cloud Infrastructure with Neo (Prince Chaddha, ProjectDiscovery) projectdiscovery.io · Blog · 2026-05-21
- Critical JetBrains TeamCity On-Premises Vulnerability Under Mass Exploitation The Hacker News · News · 2024-03-05
- Recent TeamCity Vulnerability Exploited in Ransomware Attacks SecurityWeek · News · 2024-03-11
Other reports on CVE-2024-27198
- Qilin Ransomware Suspect Arrested in Japan, Extradited to Germany; Qilin Affiliate Exploited Check Point VPN Zero-Day CVE-2026-50751
- 2026 Ransomware Surge Targeting US Organizations: Identity-First Compromise, BYOVD, and Living-Off-the-Cloud Exfiltration (Qilin, Akira, Clop, INC Ransom, Play, DragonForce, Sinobi)
- Storm-1175 Medusa Ransomware Zero-Day Exploitation Campaign (CVE-2026-23760, CVE-2025-10035)
Previous and next in vulnerability
- Windows Authentication Reflection Mitigation Bypasses for SYSTEM Shells via Kerberos Unicode Coercion (CVE-2025-33073, CVE-2026-24294, CVE-2025-58726, CVE-2026-26128) Previous report
- ProjectDiscovery Nuclei Templates April 2026: detection coverage for exploited/KEV-listed CVEs (cPanel & WHM CVE-2026-41940, Langflow CVE-2026-33017, FortiClientEMS) and AI/LLM platforms Next report
Drafted by the Threadlinqs research pipeline from 7 sources; published ; last updated —.