# Rapid7 Analysis: VMware vCenter SRP Authentication Bypass to Root (CVE-2026-123890)

Unauthenticated SRP session-key getter plus cross-connection RPC context lookup in vCenter vmdir lets an attacker complete admin login without a password, then forge STS assertions to root.

- Payout: Research
- Severity: critical
- Program: VMware
- Write-up by: Jack Heysel
- Disclosed: 2026-11-24
- CVE: CVE-2026-123890
- Write-up quality: 10/10
- Original: https://www.rapid7.com/blog/post/ra-rapid7-analysis-vmware-vcenter-srp-authentication-bypass-to-root-cve-2026-123890
- Library page: https://bugbountylibrary.com/r/blog%3Arapid7-com-blog-post-ra-rapid7-analysis-vmware-vcenter-srp-authentication-bypass-to-root-cve-2026-123890
- Tags: area:cloud domain:infra impact:data-leak impact:privesc impact:rce kind:research platform:threat-intel sev:critical tech:rest technique:race-window technique:source-review vuln:access-control vuln:auth-bypass vuln:info-disclosure vuln:privilege-escalation

**Target:** vmdir DCE/RPC service on TCP 2012 (SRP verifier helper + vmdirdbcp interfaces)
**Root cause:** Srv_rpc_srp_verifier_get_session_key returns the SRP session key without checking authentication or verifier ownership, and the RPC runtime resolves context handles from a process-wide table without comparing the requesting connection's identity.
**Steps:**
1. Create a reference SRP verifier via helper interface c7e94609-6ab0-4767-8e92-b6485bff1649 op 0, note its UUIDv1 handle.
2. Start a separate SRP login as target principal (e.g. `[email protected]`) and keep the connection open.
3. Create a second reference verifier immediately after; both share clock sequence and node id, bounding the hidden verifier's timestamp.
4. Over another anonymous connection, call op 1 (get session key) on candidate UUIDs stepping 10 ticks (or 1 tick) through the interval until the pending login's key is returned.
5. Compute M1 = SHA1((SHA1(N) XOR SHA1(g)) || SHA1(I) || s || A || B || K) and HAMK = SHA1(A || M1 || K) using the recovered K; complete SRP with A=2 in the 2048-bit group.
6. Derive packet-protection keys via PBKDF2-HMAC-SHA1 (principal as salt, 128 iterations, 64 bytes) and issue protected RPC calls.
7. Call vmdirdbcp op 0 to open `/storage/db/vmware-vmdir/data.mdb`, op 1 to read in 2048-byte chunks until zero-length, op 2 to close.
8. Extract TenantCredential-1 STS RSA key from data.mdb, forge a SAML assertion for `[email protected]` with SystemConfiguration.Administrators claims, gzip+Base64 it, and POST to `/rest/com/vmware/cis/session` with `Authorization: SIGN token="..."`.
9. With the API session, POST `/rest/appliance/local-accounts/<user>` with roles `["superAdmin"]`, enable SSH via PUT `/rest/appliance/access/ssh` and Bash via PUT `/rest/appliance/access/shell`, then SSH in and run `sudo -n /bin/bash -i` for root.
**How found:** Code review of rpcsrpserv.c showed the key getter never consults the SRP library's authenticated flag; review of ctxeectx.c showed context lookup ignores the requesting connection. Noticing UUIDv1 handles embed wall-clock timestamps with stable clock-sequence/node fields suggested bounding a hidden GSS-created verifier between two self-created reference handles.
**Exploitation:** Attacker with network access to TCP 2012 creates bounding reference verifiers around a self-initiated admin SRP login, brute-forces the hidden verifier's UUIDv1 handle (~5k queries, <1s), retrieves its session key, and completes SRP without a password. The authenticated vmdir connection exports the live directory database, whose STS private key forges an administrator SAML assertion accepted by the vCenter REST API. That session creates a superAdmin local account, enables SSH/Bash, and yields root via the appliance sudoers rule.
**Escalation:** SRP auth bypass -> authenticated vmdir RPC -> database export -> STS signing key -> forged admin API session -> local superAdmin account + SSH/Bash enablement -> root shell.
**Insight:** When a service hands out UUIDv1 context handles, they leak creation timestamps and stable node/clock-seq fields — you can bracket a hidden server-side object created by a protocol you don't control between two handles you do create, then brute-force the narrow tick window. Also check whether RPC context tables key on UUID alone rather than connection identity.

## Proof of concept (copied exactly from the original report)

**Anonymous second connection retrieves another verifier's session key**

```
We confirmed the boundary directly: one anonymous RPC connection created an SRP verifier, and a second anonymous connection retrieved that verifier's key before any password proof was sent. The first connection's context handle was enough to make the second connection's request succeed.
```

**PoC output showing key disclosure and passwordless SRP completion**

```
{"time": "2026-11-19T22:25:25.919835+00:00", "event": "session_key_disclosed", "uuid": "1d99c43a-e468-11f1-b101-000c29451b35", "key": "1f1476617a050b8e30388e0f58ed80d83f01aa02", "guesses": 5083, "seconds": 0.8774298130301759}
{"time": "2026-11-19T22:25:25.952425+00:00", "event": "srp_authentication_complete", "username": "[email protected]", "M1": "af03ad96cb799381bf8e9a30a412b4371e24729d", "HAMK": "537b2d5753f213304824551077bddd51ed6693ae", "password_supplied": false}
{"time": "2026-11-19T22:25:26.226964+00:00", "event": "protected_rpc_result", "operation": "RpcVmDirGetState", "state": 3, "status": 0, "plaintext": "0300000000000000"}
```

**Reference UUIDs bounding the hidden verifier handle**

```
Before: 1d98c67a-e468-11f1-b101-000c29451b35
Hidden: 1d99c43a-e468-11f1-b101-000c29451b35
After: 1d9a8a14-e468-11f1-b101-000c29451b35
```

