-Infinity
0

Vendor Risk Score

See how vates compares to other vendors in security performance

View Risk Score →
Severity
9.8
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Summary

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/authenticationtokens route then returns reusable login token IDs.

Details

1. In packages/xo-server/src/api/session.mjs, function signIn(credentials) has no params schema (unlike the deprecated signInWithToken, which declares token: { type: 'string' }), so credentials.token can be any JSON value. 2. 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.userid } 3. getAuthenticationToken(properties) explicitly accepts an object, and getAuthenticationToken(id, properties) does this.tokens.first(properties ?? id). 4. Collection#first(properties) -> get(properties); in collection/redis.mjs, if (isEmpty(properties)) return redis.sMembers(prefix + 'ids')… → all tokens. Non-empty objects on indexed fields (userid, clientid) do an index lookup → token of the chosen user. 5. HTTP paths: index.mjs (req.cookies.token → isValidAuthenticationToken), xo-mixins/rest-api.mjs and @xen-orchestra/rest-api middleware (cookies.authenticationToken ?? cookies.token → authenticateUser({ token })). cookie-parser turns j:-prefixed cookie values into parsed JSON, so authenticationToken=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.

bash 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.

1 / 2
Source: GitHub
First published (updated )
Severity
5.3
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L

Xen Orchestra before 6.9.0 contains an authorization bypass vulnerability in the xo-server user.set API method that allows low-privileged authenticated users to modify other users' preferences by supplying an arbitrary target user id. Attackers can delete the preferences.otp TOTP secret to disable two-factor authentication, corrupt it to block logins, or overwrite stored xsCredentials and sshKeys.

First published (updated )
Severity
7.7
AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Xen Orchestra before 6.9.0 contains an improper access control vulnerability that allows any authenticated user to become global administrator by abusing the unprotected vm.importFromEsxi and vm.importMultipleFromEsxi methods. Attackers can point xo-server at a malicious ESXi host serving a crafted .vmx file with proto.permission set, polluting Object.prototype so permission-less accounts inherit admin rights and enabling remote code execution.

First published (updated )

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203