GHSA-2R3W-C2VX-FV5G
Vulnerability from github – Published: 2026-11-23 17:29 – Updated: 2026-11-23 17:29Summary
REST cookie parsing turns authenticationToken=j:%7B%7D into {}. REST authentication passes that object to the XO token provider without requiring a string. The token collection treats {} as an unfiltered lookup and returns its first token; the provider authenticates as that token's owner if it is unexpired. The authenticated /rest/v0/users/me/authentication_tokens route then returns reusable login token IDs.
Details
- In
packages/xo-server/src/api/session.mjs, functionsignIn(credentials)has noparamsschema (unlike the deprecatedsignInWithToken, which declarestoken: { type: 'string' }), socredentials.tokencan be any JSON value. packages/xo-server/src/xo-mixins/authentication.mjs, token provider:js this.registerAuthenticationProvider(async ({ token: tokenId }, { ip } = {}) => { if (!tokenId) return // {} is truthy → passes const token = await app.getAuthenticationToken(tokenId) ... return { bypassOtp: true, expiration: token.expiration, userId: token.user_id }getAuthenticationToken(properties)explicitly accepts an object, and_getAuthenticationToken(id, properties)doesthis._tokens.first(properties ?? id).Collection#first(properties)->_get(properties); incollection/redis.mjs,if (isEmpty(properties)) return redis.sMembers(prefix + '_ids')…→ all tokens. Non-empty objects on indexed fields (user_id,client_id) do an index lookup → token of the chosen user.- HTTP paths:
index.mjs(req.cookies.token→isValidAuthenticationToken),xo-mixins/rest-api.mjsand@xen-orchestra/rest-apimiddleware (cookies.authenticationToken ?? cookies.token→authenticateUser({ token })).cookie-parserturnsj:-prefixed cookie values into parsed JSON, soauthenticationToken=j:{}yields{}.
Proof of concept
The object cookie returned 200 with unexpired token IDs, and one ID worked on a fresh request as an admin account. The attacker does not choose which token the empty-object lookup returns. Authentication succeeds only if the token returned first is unexpired and belongs to an existing user; if it is expired or its user was deleted, the request fails without trying another token.
curl -b 'authenticationToken=j:{}' https://<ip>/rest/v0/users
Impact
An adversary can bypass authentication and perform actions with 'Admin' privilege. Xen Orchestra compromise can lead to arbitrary code execution on managed pools and a full XCP-ng node takeover as root.
{
"affected": [
{
"package": {
"ecosystem": "npm",
"name": "xo-server"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "5.7.4"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2026-133469"
],
"database_specific": {
"cwe_ids": [
"CWE-1287",
"CWE-287"
],
"github_reviewed": true,
"github_reviewed_at": "2026-11-23T17:29:29Z",
"nvd_published_at": null,
"severity": "CRITICAL"
},
"details": "### Summary\n\nREST cookie parsing turns `authenticationToken=j:%7B%7D` into `{}`. REST authentication passes that object to the XO token provider without requiring a string. The token collection treats `{}` as an unfiltered lookup and returns its first token; the provider authenticates as that token\u0027s owner if it is unexpired. The authenticated `/rest/v0/users/me/authentication_tokens` route then returns reusable login token IDs.\n\n\n### Details\n\n1. In `packages/xo-server/src/api/session.mjs`, function `signIn(credentials)` has **no `params` schema** (unlike the deprecated `signInWithToken`, which declares `token: { type: \u0027string\u0027 }`), so `credentials.token` can be any JSON value.\n2. `packages/xo-server/src/xo-mixins/authentication.mjs`, token provider:\n ```js\n this.registerAuthenticationProvider(async ({ token: tokenId }, { ip } = {}) =\u003e {\n if (!tokenId) return // {} is truthy \u2192 passes\n const token = await app.getAuthenticationToken(tokenId)\n ...\n return { bypassOtp: true, expiration: token.expiration, userId: token.user_id }\n ```\n3. `getAuthenticationToken(properties)` explicitly accepts an object, and `_getAuthenticationToken(id, properties)` does `this._tokens.first(properties ?? id)`.\n4. `Collection#first(properties)` -\u003e `_get(properties)`; in `collection/redis.mjs`, `if (isEmpty(properties)) return redis.sMembers(prefix + \u0027_ids\u0027)\u2026` \u2192 **all tokens**. Non-empty objects on indexed fields (`user_id`, `client_id`) do an index lookup \u2192 token of the chosen user.\n5. HTTP paths: `index.mjs` (`req.cookies.token` \u2192 `isValidAuthenticationToken`), `xo-mixins/rest-api.mjs` and `@xen-orchestra/rest-api` middleware (`cookies.authenticationToken ?? cookies.token` \u2192 `authenticateUser({ token })`). `cookie-parser` turns `j:`-prefixed cookie values into parsed JSON, so `authenticationToken=j:{}` yields `{}`.\n\n\n### Proof of concept\n\nThe object cookie returned 200 with unexpired token IDs, and one ID worked on a fresh request as an admin account. The attacker does not choose which token the empty-object lookup returns. Authentication succeeds only if the token returned first is unexpired and belongs to an existing user; if it is expired or its user was deleted, the request fails without trying another token.\n\n```bash\ncurl -b \u0027authenticationToken=j:{}\u0027 https://\u003cip\u003e/rest/v0/users\n```\n\n### Impact\n\nAn adversary can bypass authentication and perform actions with \u0027Admin\u0027 privilege. Xen Orchestra compromise can lead to arbitrary code execution on managed pools and a full XCP-ng node takeover as root.",
"id": "GHSA-2r3w-c2vx-fv5g",
"modified": "2026-11-23T17:29:29Z",
"published": "2026-11-23T17:29:29Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/vatesfr/xen-orchestra/security/advisories/GHSA-2r3w-c2vx-fv5g"
},
{
"type": "WEB",
"url": "https://github.com/vatesfr/xen-orchestra/pull/10748"
},
{
"type": "WEB",
"url": "https://github.com/vatesfr/xen-orchestra/commit/50166fe3a49c02069d35ba9046ca4a1f77f4e11d"
},
{
"type": "WEB",
"url": "https://docs.vates.tech/security-advisories/advisories/2026/vates-sa-2026-062"
},
{
"type": "PACKAGE",
"url": "https://github.com/vatesfr/xen-orchestra"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
],
"summary": "Xen Orchestra: Empty-object login token"
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.