Skip to content
Write-up Advanced

TOPdesk vulnerable to XML Signature Wrapping Attacks

The SAML single sign-on integration in TOPdesk did not correctly bind the signed XML element to the assertion it consumed, so a modified SAML Response still passed signature validation. An attacker holding any valid identity provider account could impersonate any TOPdesk user, including operators.

Paulo A. Silva Follow

Published on char49.com

By Char49 Advisories TOPdesk, SAML, XSW, XML-based, CVE-2023-34923

Paulo A. Silva (@pauloasilva_com), on char49.com

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

Likely the SAML library validated the signature over one XML element but the application later read user data from a different, injected element, so the signed content was not the content actually used.

Impact

Anyone with valid identity provider credentials, their own or stolen, could impersonate any TOPdesk user, including operators, exposing customer requests and uploaded files and allowing interaction with customers on the organisation's behalf.

What the attacker needed

Valid identity provider account; SAML SSO enabled on the instance

The fix

TOPdesk acknowledged the finding and released a patch, which on-premises customers should apply immediately.

How it was found

  1. Decode the base64-encoded SAML Response returned by the identity provider and inspect its XML.
  2. Clone the original SAML Response XML and remove the Signature element from the clone.
  3. Insert the modified clone immediately before the Signature element in the original response.
  4. Change the account name attribute in the clone to a valid TOPdesk username.
  5. Submit the tampered response and access TOPdesk as the impersonated operator.

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.

Single sign-on lets one login service, the identity provider, tell another application who you are by sending a signed message. The application checked the signature but then read a different, unsigned copy of the message that the attacker had slipped in. That let anyone with a normal login at the identity provider pretend to be a different, more privileged user in TOPdesk.

Similar reports

Same bug class and techniques, clearest first.