Empty Cookie to Root Host: Dissecting Xen Orchestra VSA-2026-062
On 10/11/2026, Vates published an advisory so short it is hard to believe: an empty login cookie could get an attacker into Xen Orchestra with Admin rights — no password, no account, no further exploitation step. And Vates said it plainly: this flaw is being exploited in the wild.
If you run XCP-ng and use Xen Orchestra (XO) to manage your pool, this is the article to read first this week. Not because its technique is complex — quite the opposite, it is frighteningly simple — but because the consequences go far beyond one compromised admin account: from XO, an attacker can run arbitrary code on the managed pools and take over the entire XCP-ng host as root.
This article dissects advisory VSA-2026-062 as written, then places it inside the XCP-ng 8.3 security update bundle of the same day, 10/11 — because patching XO alone while skipping XAPI, the kernel and firmware still leaves your pool exposed.
What happened?
Vates — the company behind Xen Orchestra and XCP-ng — published advisory
VSA-2026-062, “Empty-object login token”, on 10/11/2026, rated
Critical. The advisory has no CVE assigned and no CVSS 4.0 score (“Not
available yet”) as of the reading date, 18/11/2026. The flaw was found by
Filip Magic (@mad31k) and Christoffer Olsen of TDC NET Security, and the fix
is in pull request #10748 of the xen-orchestra repository, commit 50166fe3,
merged at 08:29 UTC on 10/11/2026.
The biggest difference from most advisories that same week: Vates confirmed
it is being exploited. The advisory states the initial threat actor
operated from 91.211.251.112:8001 and a Tor service at
ustar3rqxgnskzgnwkgpofgtvxevm6cx3lxdbwt4mndtveqyaohid.onion:3333. Vates
lists a total of 8 IP addresses to block (see the IoC section below) and
warns: this list only reflects the campaign observed so far — other actors,
with different infrastructure and techniques, cannot be ruled out.
One note on version numbers, because early press coverage differed: some
articles gave the fix as Xen Orchestra 6.9.1 (stable) and 6.10.0 (latest).
The official Vates advisory — read directly on 18/11/2026 — states the fix
is 6.9.2 (stable) and 6.10.1 (latest), with the corresponding xo-server
packages 5.211.2 and 5.213.1. Where there is a conflict, the advisory
is authoritative. The advisory’s “Affected Versions” line also mentions
xo-server 5.213.2 in a confusing way, while the Resolution section does not
list it as a fix — that is a self-contradiction inside the advisory, and this
article will not speculate further: just upgrade to exactly the versions the
Resolution section states.
Anatomy: how an empty object fooled the token system
The mechanism, exactly as Vates describes it, is just three steps:
- The cookie is parsed into an empty object. REST cookie parsing turns
the value
authenticationToken=j:%7B%7Dinto{}— an empty JSON object. Thej:prefix means “this value is JSON”, and%7B%7Dis{}URL-encoded. - The empty object goes straight into the token lookup, with no
requirement that it be a string. REST authentication passes that object
to the XO token provider without requiring it to be a string. The token
collection treats
{}as a query with no filter condition, and returns the first token it finds. - Login as the owner of that token. If the first token has not expired,
the provider authenticates the session as that token’s owner. Afterwards,
the route
/rest/v0/users/me/authentication_tokens— meant for already authenticated users — returns reusable login token IDs.
In other words: the system did not check “is this token valid”, it checked “does this token exist” — and an empty query always “finds” something. The fix in PR #10748 does exactly one obvious thing that should have been there from the start: reject authentication token IDs that are not strings or are empty before querying the token collection.
Why did a flaw this “silly” survive until release? Because it sits at the intersection of two assumptions that each look reasonable on their own: the cookie parser believed it only needed to decode JSON, while the token provider believed the input it received was already a valid ID. Neither side re-checked the other’s assumption. It is the same pattern as many other auth bypasses: the trust boundary lies between two components, and nobody guards it.
Impact: from XO Admin to root on the host
Vates describes the impact in one sentence: an attacker can bypass authentication and act with Admin rights. But the second sentence is the important one: a compromised XO can lead to arbitrary code execution on the managed pools and takeover of the entire XCP-ng node as root.
The reason is architectural: Xen Orchestra is not a read-only interface. It holds the administrative credentials of the pools, calls XAPI with the highest privileges, and can create, modify and import VMs and run commands on the host. Once an attacker sits in XO’s Admin seat, they do not need to find another flaw on the host — they use the legitimate administrative features to go further. That is also why Vates rates this flaw Critical even though on its own it is “only” an auth bypass: in the threat model of virtualization infrastructure, the management plane is the highest-privilege plane there is.
Are you affected?
| Release channel | Affected versions | Fix |
|---|---|---|
| Stable | Xen Orchestra before 6.9.2 | 6.9.2, xo-server 5.211.2 |
| Latest | Xen Orchestra before 6.10.1 | 6.10.1, xo-server 5.213.1 |
| Appliance | Xen Orchestra Appliance (XOA) | Upgrade via the XOA updater to the matching version |
Three questions to check, in order:
- Do you run Xen Orchestra? If you only run bare XCP-ng hosts and manage
them with the
xeCLI or XenCenter, this flaw does not touch you — it is inxo-server, not in the host. But if there is any XO/XOA instance at all — including a trial instance set up and forgotten — that instance still counts. - Which version? Check the version of XO you are running and compare it
with the table above. For XOA, use the built-in updater. For XO installed
from source, Vates recommends updating to the newest
master. - Is XO exposed to the Internet? Vates says most XO deployments are not exposed to the Internet, and that significantly reduces the chance of exploitation. But “not exposed” must be verified with firewall rules and logs, not with a feeling. If XO is reachable from the Internet, this is a patch-today job, not a patch-this-week job.
Indicators of compromise (IoCs): what to check, and the limits of checking
Vates published the IoCs of the campaign it observed. Most important: a successful exploit leaves no log of unauthenticated access. That means there is no log line to grep for “who logged in without authorization”. You have to check using other traces:
On Xen Orchestra — inspect HTTP requests:
- The malicious cookie pattern in requests:
authenticationToken=j:%7B%7DorauthenticationToken=j:{} - Check with tcpdump or Wireshark on the path to XO, because the application log does not record it.
- Look for a VM named
pivot2in the list of running VMs.
On the XCP-ng host — traces the attacker leaves:
# VM using the hvm_serial: file parameter
xe vm-list params=name-label,platform | grep -B1 'hvm_serial: file'
# Serial file traces in the log
zgrep -- '-serial file:' /var/log/xensource.log*
# Attacker cron files and hidden files
ls -la /etc/ld.so.preload /.ustar* /etc/cron.d/zz-ustar*
Files to look for: /etc/cron.d/zz-ustar, /etc/cron.d/zz-ustar2, /.ustar5,
/.ustar6, and a modified /etc/ld.so.preload. IPs to block (both ingress
and egress): 91.211.251.112, 193.148.56.72, 37.221.208.216,
45.66.35.11, 64.65.0.120, 64.65.62.160, 89.47.51.90, 92.60.37.247
— plus blocking Tor traffic to the onion service above.
A limit that must be stated clearly: Vates stresses these methods only cover the specific campaign observed. Finding no IoC is not enough to conclude you were not compromised. If there is real suspicion — especially if XO was ever exposed to the Internet while running an unpatched version — the correct response is to assume compromise and follow the remediation section below, rather than just checking IoCs and feeling safe.
Remediation: the correct order
Step 1 — Patch Xen Orchestra now. Upgrade to 6.9.2 (stable, xo-server
5.211.2) or 6.10.1 (latest, xo-server 5.213.1). For XOA, use the built-in
updater; for XO from source, pull the newest master and rebuild. This is
the only step that closes the flaw.
Step 2 — Take XO off the Internet. Put the XO instance on a dedicated management network, accessible only via VPN or bastion. This is a measure Vates recommends independently of patching — because the next flaw in the management plane may already exist without anyone knowing. See the VSA-2026-063 section below to understand why this step is not just “for extra safety”.
Step 3 — Block the attacker’s infrastructure and the malicious cookie
pattern. Add firewall rules blocking the 8 IPs above in both directions,
and block Tor traffic. If there is a WAF or reverse proxy in front of XO, add
a rule blocking authenticationToken=j:{} and
authenticationToken=j:%7B%7D. Vates warns explicitly: be careful with
regex, because a rule can be bypassed with other formats — this is a
temporary mitigation, not a replacement for the patch.
Step 4 — If you suspect compromise: rotate all credentials. Vates states clearly that configuration exfiltration and credential harvesting cannot be ruled out. Rotate: passwords and secrets used in Vates VMS (proxy, backup remotes NFS/S3/Azure/SMB, root account, pool secret, user accounts, OTP secrets, mail server passwords…). And if compromise is confirmed, Vates recommends a full reinstall — simple cleanup does not guarantee that all backdoors the attacker left are gone.
The second flaw: VSA-2026-063 — patching 062 is not enough
This is the part an article that only patches VSA-2026-062 would miss, and the reason this article devotes a whole section to it.
On the same day, 10/11/2026, Vates published a second advisory, VSA-2026-063, “Crafted keys through XO vm.import privilege”, rated Important, with no CVE and no CVSS score. As of the 10/11 advisory — and still true when re-checked on 18/11/2026, at publication time — there is no fix on either the latest or the stable channel. Status: “In progress”, Vates is actively working on a fix.
The mechanism: Xen Orchestra sends requests to XAPI with the pool-admin
role — the highest privilege, allowing configuration of nearly every aspect
of the system — and forwards the XVA import stream without reading or
modifying ova.xml. An unprivileged user who holds just one of four
privileges, vm.import (JSON-RPC), sr/import:vm (REST API),
network/action:create or network/action:update, can import a raw XVA file
with pre-crafted keys — for example VBD.other_config:backend-local,
VM.other-config:is_system_domain, VM.platform:hvm_serial — to take over
the XCP-ng host. This technique was demonstrated via XSA-489 and XSA-530.
And here is the link between the two advisories: according to Vates, the very threat actor behind VSA-2026-062 abused this path, using the Admin rights gained from the empty-cookie flaw to import a malicious VM and take over the host. In other words, 062 is the way in, 063 is the way onward inside. Patching 062 closes the way in — but any account that still holds import rights can still take the 063 path.
The only mitigation currently available for 063: allow only the Admin
user to import VMs — disable every user holding any of the four privileges
above. There is no other workaround in the advisory. Because the “In
progress” status can change at any time, this section was re-checked against
the VSA-2026-063 advisory before publication on 18/11/2026 — still no fix.
Same day, 10/11: the XCP-ng 8.3 LTS update bundle — don’t patch XO alone
On 10/11/2026, XCP-ng also released November 2026 Security Updates #3 for XCP-ng 8.3 LTS. XCP-ng updates are cumulative, so applying this batch also applies any earlier updates not yet applied. Three groups in this batch:
XAPI — XSA-529: Pool Secret timing oracle (Critical). XAPI uses a bearer
token called the Pool Secret to authenticate requests between hosts in a
pool. Comparing this token used a data-dependent-time function, so an
unauthenticated attacker on the pool’s management network could use it as a
timing oracle to infer the Pool Secret value, and from there take over the
entire pool. CVE: CVE-2026-102705, Vates advisory VSA-2026-057. Fix:
package xapi-26.1.21-1.4.xcpng8.3 for XCP-ng 8.3, requiring
xe-toolstack-restart to take effect. Important: after deploying the
patched XAPI to every member of the pool, you must rotate the Pool Secret
with xe pool-secret-rotate — this command runs live, with no toolstack
restart needed, but it will fail if HA is enabled or a task is running.
There is no other mitigation for this flaw.
XAPI — XSA-530: multiple RBAC flaws (Moderate). Some RBAC limits did not previously cover every API call. An authenticated user holding a restricted role such as pool-operator, vm-power-admin or vm-admin could escalate to pool-admin; even a user with only read-only rights could force-fail a task belonging to a more privileged role. CVEs: CVE-2026-102706, CVE-2026-102707, CVE-2026-102708, CVE-2026-119779, CVE-2026-119780, Vates advisory VSA-2026-058. One detail worth noting from Vates: they do not recommend using the XAPI RBAC system — Xen Orchestra manages its own users and does not rely on it. Pools that do not use XAPI RBAC are not affected by these flaws.
Kernel — XSA-526, XSA-527, XSA-531: use-after-free in xen-netback (Critical). Three use-after-free flaws in the xen-netback driver — the dom0 kernel part serving virtual network cards of guests. When an interface is removed, the driver frees data that can still be read: statistics data when a connection fails (XSA-526, and XSA-531 patches a remaining hole in the first fix), and the multicast address list (XSA-527). The most likely outcome is a DoS of the whole host by a malicious guest, but information leak and — though unlikely — privilege escalation cannot be ruled out. CVEs: CVE-2026-100080, CVE-2026-100081, CVE-2026-99286, advisory VSA-2026-060.
This batch also includes CVE-2026-97631 (EDK2/OVMF, Moderate): a pre-boot RCE in the PXE driver via an oversized ICMP error message — it only affects UEFI guests that are PXE-booting, inside exactly that boot window, not running VMs; the new firmware applies from the next UEFI boot. And XSA-528 (use-after-free in the Xen block backend) was patched along to stay in sync with upstream, but XCP-ng 8.3 is not affected in its default configuration because the in-kernel block backend is not used by default.
The sensible patch order for an XCP-ng pool: patch XO first (because it is being exploited and exposed), then apply Security Updates #3 to the hosts (XAPI + kernel + EDK2), then rotate the Pool Secret, then check IoCs, and only then consider re-enabling VM import rights once VSA-2026-063 has a fix.
Lessons: the management plane is the attack plane
Three lessons from the 10/11 advisory bundle, not just from VSA-2026-062:
1. Validate the data type, not just the value. Flaw 062 was not caused by a wrong token, but by a token that… was not a token. An authentication ID must be a non-empty string — that is an invariant of the system, and it must be enforced where data enters, not where data is used. This lesson applies to every API that takes a token, session ID or key from a client: reject early, reject explicitly, do not let a “strange” value travel deep into the system before it is noticed.
2. Compare secrets with a constant-time function. Flaw XSA-529 is the classic mistake any system with a hand-written secret comparison can make: the comparison stops early at the first differing character, and the response time leaks each character of the secret. Every secret must be compared with a timing-safe function — and the Pool Secret, which authenticates a whole pool of hosts to each other, is the clearest example that “infrastructure secrets” deserve to be treated like user passwords.
3. RBAC must be tested at every API call, not just in the design. XSA-530 shows RBAC limits can be correct on paper yet missing on specific API calls — and a single call slipping through is enough to escalate privileges. With virtualization infrastructure, where even a “restricted” role can touch host-management APIs, RBAC testing must be automated tests running on every endpoint, not manual review done in batches.
And the lesson covering all three: the management plane must be isolated as if it were the most important system — because it is. XO, XAPI, the pool’s management network: do not expose them to the Internet, do not share a network with VMs, do not leave administrative credentials within reach of ordinary users. The next flaw in this plane may already exist; the only question is when it is disclosed, and whether you have finished patching the previous one by then.
Verification scope
Verified directly on 18/11/2026 (reading the original advisory pages):
- Vates VSA-2026-062 — Critical, being exploited, fix 6.9.2/6.10.1,
xo-server5.211.2/5.213.1, PR #10748, commit50166fe3, IoCs and mitigations as in this article. - Vates VSA-2026-063 — Important, no fix as of the 10/11 advisory, status “In progress”, mitigation: limit import to Admin. Re-checked before publication on 18/11/2026 — still no fix.
- Vates VSA-2026-057 (XSA-529 / CVE-2026-102705) — Critical,
xapi-26.1.21-1.4.xcpng8.3,xe pool-secret-rotate. - XCP-ng Blog, November 2026 Security Updates #3 for XCP-ng 8.3 LTS (10/11/2026) — XSA-529/530, kernel XSA-526/527/531, EDK2 CVE-2026-97631, XSA-528.
Not verified directly, taken via the summary in Security Updates #3 (read the original advisory before publishing):
- Full details of VSA-2026-058 (XSA-530): the 5 RBAC CVEs above are taken from XCP-ng’s round-up article; the original VSA-2026-058 page was not read.
- Full details of VSA-2026-060 (kernel xen-netback) and VSA-2026-059 (EDK2): CVE numbers and descriptions are taken from the round-up article; the original advisories were not read.
- CISA KEV status of the CVEs in this bundle: not checked against the catalog on 18/11.
Not done — stated limits:
- No real XO/XCP-ng lab. This article is an advisory analysis + checklist, not hands-on. No version screenshots, no real logs, no IoC check commands run on a real system. The commands in this article are taken verbatim from the Vates advisory, untested.
- No other XCP-ng article on the site to link to internally. The site currently has 0 articles on VMware/Proxmox/XCP-ng (per the repo audit of 18/11/2026), and the vSphere/Proxmox/XCP-ng comparison only exists as research in chat, not as a published article — so this article currently places no internal links. When that comparison is published on the site, add a backlink.
References
- Vates, VSA-2026-062: Empty-object login token, 10/11/2026 — https://docs.vates.tech/security-advisories/advisories/2026/vates-sa-2026-062/
- Vates, VSA-2026-063: Crafted keys through XO vm.import privilege, 10/11/2026 — https://docs.vates.tech/security-advisories/advisories/2026/vates-sa-2026-063/
- Vates, VSA-2026-057: Data-dependent compare function used for Pool Secret (CVE-2026-102705 / XSA-529), 10/11/2026 — https://docs.vates.tech/security-advisories/advisories/2026/vates-sa-2026-057/
- XCP-ng Blog, November 2026 Security Updates #3 for XCP-ng 8.3 LTS, 10/11/2026 — https://xcp-ng.org/blog/2026/11/10/november-2026-security-updates-3-for-xcp-ng-8-3-lts/
- Xen Orchestra, PR #10748 — fix(xo-server): validate authentication token IDs — https://github.com/vatesfr/xen-orchestra/pull/10748
- Xen Project, Xen Security Advisories (XSA-529, XSA-530) — https://xenbits.xen.org/xsa/
Bình luận
Bình luận được duyệt trước khi hiển thị.Đang tải bình luận…
Để lại bình luận