Skip to content
Access control Write-up Advanced

Bypassing Veeam Authentication CVE-2024-29849

Veeam Backup Enterprise Manager's REST API accepted a SAML token whose Issuer field was used to build the URL of the SSO validation service, so an attacker could point that URL at a server they control and have it approve a forged token. This let an unauthenticated attacker log in to the web interface as any user.

summoning.team

Published on summoning.team

Veeam published a CVSS 9.8 advisory for a authentication bypass vulnerability CVE-2024-29849, Following is my full analysis and exploit for this issue.

The author, on summoning.team

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The application trusted the Issuer value inside the attacker-supplied SAML token to choose which SSO service to validate the token against, instead of using a fixed, configured endpoint.

Impact

An unauthenticated attacker could log in to the Enterprise Manager web interface as any user, and the proof of concept only listed internal file servers to show the bypass worked.

What the attacker needed

Network access to TCP/9398; attacker-controlled host reachable by the server; a forged SAML assertion

How it was found

  1. Send a login request to the REST API service on port 9398 with the version parameter set to latest.
  2. Include a LoginSpec containing a VMwareSSOToken member.
  3. Make the token a base64-encoded SAML assertion whose Issuer points at an attacker-controlled host.
  4. Run a fake STS endpoint on that host that returns a successful validation response.
  5. The service creates a session for the user named in the forged assertion.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

When you log in with a single sign-on token, the server has to ask a separate identity service whether the token is genuine. Here the server took the address of that identity service from a field inside the token itself, which the attacker supplies. The attacker pointed it at their own server, which always said yes, so the application believed the fake token and logged them in.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.