Skip to content
OAuth / SSO Write-up Advanced

How a SAML Signature Wrapping (XSW) Flaw Enabled a $7,000 Enterprise SSO Bypass

The SAML consumer endpoint verified the signature on the original assertion but then read the user identity from the first assertion node in the document, which could be an unsigned forged one. An attacker with any legitimate low-privilege account could therefore forge an administrator session.

T4nv1 Follow

Published on medium.com

Enterprise Single Sign-On (SSO) integrations frequently rely on Security Assertion Markup Language (SAML) 2.0 to authenticate users across corporate Identity Providers (IdPs) and Service Providers (SPs). Because SAML assertions are transmitted via the user’s browser inside base64-encoded XML payloads, the Service…

T4nv1, on medium.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.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 7 min read.

Context

Enterprise Single Sign-On (SSO) integrations frequently rely on SAML 2.0 to authenticate users across corporate Identity Providers (IdPs) and Service Providers (SPs). Because SAML assertions travel through the user's browser inside base64-encoded XML payloads, the Service Provider depends entirely on cryptographic XML Digital Signatures (xmldsig) to confirm that an assertion was genuinely issued by the trusted IdP and has not been modified in transit.

XML signature validation and XML business-logic parsing are often handled by two separate layers. When the signature verifier validates the signed XML element anywhere in the document tree, while the application logic extracts the user identity from a different, unsigned XML node, an attacker can exploit XML Signature Wrapping (XSW).

This write-up examines how a structural discrepancy in an enterprise SaaS platform's SAML consumer endpoint allowed an attacker to forge arbitrary administrative sessions using a single legitimate assertion.

Photo by Doncoombez on Unsplash From the original on medium.com

Setup

The target platform supported SAML 2.0 SSO for enterprise organizations, allowing employees to log in via corporate identity providers such as Okta or Azure AD. The relevant components were:

  1. Assertion Consumer Service (ACS): Located at POST /api/v1/auth/saml/acs, this endpoint received the base64-encoded SAMLResponse XML document from the user's browser.
  2. Signature Validation Layer: Used an XML security library to locate any <ds:Signature> element inside the payload, resolve its referenced ID attribute, and verify the cryptographic digest against the organization's configured public X.509 certificate.
  3. Identity Extraction Layer: Queried the XML Document Object Model (DOM) using an XPath expression (//saml:Assertion/saml:Subject/saml:NameID) to extract the authenticated user's email address.

The testing started from a standard low-privilege account, [redacted], and a valid SAMLResponse captured during a normal login flow. The target administrator's email used in the forged assertion was [redacted].

A valid SAML response intercepted during a normal login flow followed this structure:

XML
<samlp:Response xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" ID="_resp_9910">
  <saml:Issuer xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">https://[redacted]-target.com</saml:Issuer>
  <saml:Assertion xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" ID="_assert_valid_123">
    <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
      <ds:SignedInfo>
        <ds:Reference URI="#_assert_valid_123">
          <!-- Cryptographic digest and signature over _assert_valid_123 -->
        </ds:Reference>
      </ds:SignedInfo>
      <ds:SignatureValue>BASE64_VALID_IDP_SIGNATURE...</ds:SignatureValue>
    </ds:Signature>
    <saml:Subject>
      <saml:NameID>[redacted]</saml:NameID>
    </saml:Subject>
  </saml:Assertion>
</samlp:Response>

Finding it

The root cause was an XPath vs. ID-Reference Mismatch:

  • The signature validator verified that the <ds:Signature> referencing #_assert_valid_123 was mathematically valid, regardless of where _assert_valid_123 sat inside the XML hierarchy.
  • The application's authentication parser simply grabbed the first <saml:Assertion> node returned by a relative DOM query without verifying that the extracted node was the exact element covered by the cryptographic signature.

In other words, the signature check and the identity extraction were anchored to different things: the verifier followed the ID reference wherever it pointed, while the parser took whatever assertion appeared first in document order. That gap is what makes XSW possible.

Exploitation

Step 1: Testing structural mutations in the SAML response

To determine whether the ACS endpoint enforced strict schema validation or bound the signature check to the extracted assertion, the researcher captured a valid SAMLResponse issued for the low-privilege account ([redacted]).

Before modifying any user attributes, structural changes to the XML tree were tested, such as duplicating the <saml:Assertion> block or wrapping the original signed assertion inside an extension element, to observe how the parser handled multiple assertion nodes.

When a duplicate unsigned assertion was placed before the original signed assertion inside <samlp:Response>, the endpoint returned a 302 Found redirect with a valid session cookie rather than a signature verification failure. That confirmed the parser was not binding the signature to the assertion it consumed.

Step 2: Constructing the XML Signature Wrapping payload

With structural ambiguity confirmed, an XSW variant (commonly classified as XSW2/XSW3) was constructed that preserved the legitimate signature untouched while injecting a forged assertion at the top of the document tree:

  • Preserve the original assertion: keep <saml:Assertion ID="_assert_valid_123"> along with its intact <ds:Signature> block inside the XML document so the signature validator succeeds.
  • Inject a forged assertion: insert a new <saml:Assertion ID="_assert_forged_999"> without a <ds:Signature> block immediately above the original assertion.
  • Modify the subject: set <saml:NameID> inside the forged assertion to the target administrator's email ([redacted]).
XML
<samlp:Response xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" ID="_resp_9910">
  <saml:Issuer xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">https://[redacted]-target.com</saml:Issuer>

  <!-- Forged Unsigned Assertion (Read first by DOM XPath query) -->
  <saml:Assertion xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" ID="_assert_forged_999">
    <saml:Subject>
      <saml:NameID>[redacted]</saml:NameID>
    </saml:Subject>
    <saml:Conditions NotBefore="2026-11-14T10:00:00Z" NotOnOrAfter="2026-11-14T11:00:00Z"/>
  </saml:Assertion>
  <!-- Original Signed Assertion (Validated by XML Signature library) -->
  <saml:Assertion xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" ID="_assert_valid_123">
    <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
      <ds:SignedInfo>
        <ds:Reference URI="#_assert_valid_123">
          <!-- Intact cryptographic digest -->
        </ds:Reference>
      </ds:SignedInfo>
      <ds:SignatureValue>BASE64_VALID_IDP_SIGNATURE...</ds:SignatureValue>
    </ds:Signature>
    <saml:Subject>
      <saml:NameID>[redacted]</saml:NameID>
    </saml:Subject>
  </saml:Assertion>
</samlp:Response>

The forged assertion carries no signature at all; it only needs to appear before the signed one so that the unanchored XPath query picks it up. The signed assertion stays byte-for-byte intact, so the digest check still passes.

Step 3: Executing the authentication bypass

The modified XML payload was base64-encoded and submitted directly to the ACS endpoint:

Bash
POST /api/v1/auth/saml/acs HTTP/2
Host: app.target-platform.com
Content-Type: application/x-www-form-urlencoded
SAMLResponse=[redacted]...

Execution flow on the backend:

  • Signature verification: the security library located <ds:Signature>, resolved URI="#_assert_valid_123", verified that the original assertion had not been altered, and returned valid = true.
  • Identity resolution: the application controller queried the first <saml:Assertion> node in the response document, extracted [redacted] from _assert_forged_999, and issued a session JWT bound to the organization's administrator account.

Root cause

The mistake is the split between validation and consumption. The signature library is asked a narrow question, "is there a valid signature over the element with this ID somewhere in this document?", and answers yes. The application then asks a different question, "what is the first assertion in this document?", and trusts the answer. Nothing ties the two together, so an unsigned node placed earlier in the tree wins.

Existing defences did not stop it because neither layer was wrong on its own terms: the cryptographic check was genuine, and the XPath expression was syntactically valid. The failure is in the contract between them. Strict schema validation, which would have rejected the duplicate assertion, was evidently not enforced before signature verification, since the mutated payload was accepted.

Impact

An attacker holding a single legitimate assertion for a low-privilege account could forge an arbitrary administrative session. In the demonstrated case the forged NameID was the organization administrator's email, and the ACS issued a session JWT bound to that administrator account. The precondition is that the attacker can obtain a valid signed assertion from the organization's IdP. The report does not describe what was done with the resulting session beyond obtaining it.

Fix

The report lists three remediation strategies:

  • Enforce strict XML Schema (XSD) validation: validate incoming SAML responses against the official OASIS SAML 2.0 XSD schemas prior to signature verification to reject unexpected duplicate elements or non-standard wrapper nodes.
  • Extract data only from verified nodes: ensure the application logic reads <saml:Subject> and <saml:AttributeStatement> directly from the exact DOM node object returned by the signature validation routine rather than running a separate, unanchored XPath query.
  • Require top-level response signatures: configure the Service Provider to require cryptographic signatures covering the entire <samlp:Response> root element rather than individual nested assertions.

The report does not say which of these the platform implemented.

Variants to test

  • Duplicate assertion before the signed one: place an unsigned <saml:Assertion> above the signed assertion. A positive result is a session issued instead of a signature error.
  • Wrapping the signed assertion inside an extension element: relocate the original signed assertion into a wrapper node while a forged assertion sits at the level the parser reads, and observe how the parser handles it.

Hunting notes

This class of bug hides wherever a SAML SP uses one library to verify signatures and separate application code to read identity, which is common in custom ACS endpoints such as POST /api/v1/auth/saml/acs.

The practical test is cheap: capture one legitimate assertion from a low-privilege account, duplicate the assertion block, and see whether the endpoint still issues a session. A 302 Found with a session cookie, where a signature failure was expected, is the confirmation that the binding is broken.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 15 min read.

What happened, in plain words

A company ran a login system that let its business customers sign in through their own corporate login pages. That kind of setup is called Single Sign-On, or SSO: instead of each employee having a separate password for every tool, the company's central login service vouches for them, and the tool trusts that voucher.

The voucher is a small block of text called a SAML assertion. It travels through the employee's own browser, which means the employee can see it and, in principle, change it. To stop people from simply editing the voucher and claiming to be someone else, the voucher carries a digital signature: a mathematical seal that only the company's central login service can produce. The tool that receives the voucher is supposed to check the seal before believing anything inside it.

On this platform, the checking and the believing were done by two different pieces of code that did not talk to each other properly. One piece checked the seal and said "yes, this is genuine". The other piece then read the name from a different part of the document, one that had no seal on it at all. By putting a fake, unsigned voucher in front of the real, signed one, the researcher got the platform to check the real one and then believe the fake one. The result was a login session for the organisation's administrator, created from a single ordinary user's legitimate voucher.

The name for this class of mistake is XML Signature Wrapping, usually shortened to XSW. The rest of this article walks through how the researcher found it, step by step, and explains every term along the way.

Photo by Doncoombez on Unsplash From the original on medium.com

Background: what all these pieces are

Before the steps make sense, here is the cast of characters, explained from scratch.

SAML 2.0 is a set of rules for how two systems exchange a login confirmation. The system where the user actually types their password is the Identity Provider, or IdP: think of it as the company's front desk that checks your ID. The system the user wants to use is the Service Provider, or SP: think of it as the office door that opens once the front desk has vouched for you. Okta and Azure AD are examples of IdPs named in the report.

XML is a way of writing structured data using tags, similar to HTML but meant for data rather than web pages. A tag looks like <name>value</name>. Tags can be nested inside each other, forming a tree: one outer tag contains smaller tags, which contain smaller ones still. The whole tree is called a document.

Base64 is a way of turning any chunk of data into plain letters and digits so it can be sent safely through places that only expect text, such as a web form. It is not encryption: anyone can turn it back into the original. It is more like writing a message in a different alphabet.

A digital signature is a mathematical seal. The IdP holds a private key that only it has, and uses it to produce a value that anyone can check against the IdP's public key. If even one character of the signed content changes, the check fails. In XML, signatures live inside a <ds:Signature> element, and the rules for them are called XML Digital Signature, or xmldsig.

An API is the set of addresses a program exposes so other programs can talk to it. When your browser sends a login form, it is really sending a request to one of those addresses. An endpoint is one specific address in that API, for example the one that handles SAML logins.

A cookie is a small piece of data a website asks your browser to store and send back on every later request. It is how a website remembers that you are logged in. A token (here, a JWT, or JSON Web Token) is a similar idea in a different form: a signed string that the server hands you and that you present on later requests to prove who you are. Think of a cookie or token as the wristband you get at an event: the door staff check the wristband, not your face.

A 302 Found is an HTTP status code meaning "the thing you asked for is somewhere else, go there instead". In login flows it usually means "you are logged in, here is your session".

XPath is a query language for picking nodes out of an XML tree, a bit like saying "find the first paragraph with this heading inside that chapter". The expression //saml:Assertion/saml:Subject/saml:NameID means: anywhere in the document, find an Assertion, inside it a Subject, inside that a NameID.

The DOM (Document Object Model) is the in-memory tree a program builds when it reads an XML document. When code says "the first Assertion node", it means the first one in the order the tree is laid out, top to bottom.

XSW, XML Signature Wrapping, is the trick of rearranging that tree so that the part which gets checked and the part which gets used are not the same part.

The target and why it was broken

The platform offered SAML 2.0 SSO to business customers, so employees could log in through their company's IdP. Three components mattered:

  1. The Assertion Consumer Service (ACS). This is the endpoint that receives the voucher. It sat at POST /api/v1/auth/saml/acs. POST is the HTTP method used when a browser submits data; the path is the address.
  2. The signature validation layer. A library whose job was to find a <ds:Signature> element anywhere in the payload, look up the ID it refers to, and check the maths against the organisation's public certificate. A certificate here is the public half of the IdP's key pair, published so anyone can verify its signatures.
  3. The identity extraction layer. Separate application code that ran an XPath query to pull out the user's email address.

The testing started from an ordinary, low-privilege account, [redacted], and a valid voucher captured during a normal login. The administrator's address used later in the forged voucher was [redacted].

Here is what a normal, untouched voucher looked like:

XML
<samlp:Response xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" ID="_resp_9910">
  <saml:Issuer xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">https://[redacted]-target.com</saml:Issuer>
  <saml:Assertion xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" ID="_assert_valid_123">
    <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
      <ds:SignedInfo>
        <ds:Reference URI="#_assert_valid_123">
          <!-- Cryptographic digest and signature over _assert_valid_123 -->
        </ds:Reference>
      </ds:SignedInfo>
      <ds:SignatureValue>BASE64_VALID_IDP_SIGNATURE...</ds:SignatureValue>
    </ds:Signature>
    <saml:Subject>
      <saml:NameID>[redacted]</saml:NameID>
    </saml:Subject>
  </saml:Assertion>
</samlp:Response>

Line by line:

  • <samlp:Response ...> is the outer envelope. Everything else sits inside it. It has an ID of _resp_9910, a name tag so other parts can refer to it. The xmlns:samlp=... part declares a namespace, which is a way of saying "these tags belong to this particular standard" so two standards can both use a tag called Response without clashing.
  • <saml:Issuer> says who issued the voucher: the IdP at https://[redacted]-target.com.
  • <saml:Assertion ... ID="_assert_valid_123"> is the actual voucher: the statement "this person is logged in". It has its own ID so the signature can point at it.
  • <ds:Signature> is the seal. Inside it, <ds:SignedInfo> describes what was signed, and <ds:Reference URI="#_assert_valid_123"> says "the thing I signed is the element whose ID is _assert_valid_123". The # is the same convention a web link uses to jump to a named part of a page.
  • <ds:SignatureValue> is the seal itself, in base64.
  • <saml:Subject> contains <saml:NameID>, which is the email address of the person being vouched for.

Finding the flaw

The root cause was a mismatch between two ways of pointing at the same thing: an XPath query and an ID reference.

  • The signature validator checked that the seal over #_assert_valid_123 was mathematically valid, no matter where in the tree that element happened to sit.
  • The application's parser simply took the first <saml:Assertion> it found and trusted it, without checking that this was the same element the seal covered.

In everyday terms: a bouncer checks that a wristband is genuine, but the door staff let in whoever is standing at the front of the queue. If you can put someone else at the front of the queue while the genuine wristband holder waits behind them, you get in.

Step 1: Testing structural changes

The first question was whether the ACS endpoint was strict about the shape of the document, or whether it would accept extra or rearranged pieces. To find out, the researcher took a valid voucher issued for the low-privilege account and made structural changes only, without touching any user details: duplicating the <saml:Assertion> block, or wrapping the original signed assertion inside an extension element. The aim was to watch how the parser coped with more than one assertion.

When a duplicate, unsigned assertion was placed before the original signed one inside <samlp:Response>, the endpoint replied with a 302 Found redirect and a valid session cookie, instead of complaining about the signature. That was the confirmation: the parser was not tying the signature to the assertion it actually used.

Why this step mattered: before building a full attack, you want to know whether the door is even slightly ajar. A single duplicate block is a cheap test, and the answer told the researcher exactly which way to push.

Step 2: Building the wrapped payload

With the ambiguity confirmed, the researcher built an XSW variant, commonly classified as XSW2 or XSW3, that left the genuine seal untouched and added a forged assertion at the top of the tree. The plan had three parts:

  • Keep the original assertion. Leave <saml:Assertion ID="_assert_valid_123"> and its <ds:Signature> exactly as they were, so the signature check still passes.
  • Add a forged assertion. Insert a new <saml:Assertion ID="_assert_forged_999"> with no signature at all, immediately above the original.
  • Change the subject. Put the administrator's email, [redacted], into the forged assertion's <saml:NameID>.
XML
<samlp:Response xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" ID="_resp_9910">
  <saml:Issuer xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">https://[redacted]-target.com</saml:Issuer>

  <!-- Forged Unsigned Assertion (Read first by DOM XPath query) -->
  <saml:Assertion xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" ID="_assert_forged_999">
    <saml:Subject>
      <saml:NameID>[redacted]</saml:NameID>
    </saml:Subject>
    <saml:Conditions NotBefore="2026-11-14T10:00:00Z" NotOnOrAfter="2026-11-14T11:00:00Z"/>
  </saml:Assertion>
  <!-- Original Signed Assertion (Validated by XML Signature library) -->
  <saml:Assertion xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" ID="_assert_valid_123">
    <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
      <ds:SignedInfo>
        <ds:Reference URI="#_assert_valid_123">
          <!-- Intact cryptographic digest -->
        </ds:Reference>
      </ds:SignedInfo>
      <ds:SignatureValue>BASE64_VALID_IDP_SIGNATURE...</ds:SignatureValue>
    </ds:Signature>
    <saml:Subject>
      <saml:NameID>[redacted]</saml:NameID>
    </saml:Subject>
  </saml:Assertion>
</samlp:Response>

Line by line:

  • The outer <samlp:Response> and <saml:Issuer> are unchanged from the genuine voucher. The envelope still looks normal.
  • The comment <!-- Forged Unsigned Assertion ... --> is just a note for the reader; the parser ignores it. It marks the block that has no seal.
  • <saml:Assertion ... ID="_assert_forged_999"> is the fake voucher. It has a different ID from the real one, so it cannot be confused with the signed element by ID.
  • <saml:NameID>[redacted]</saml:NameID> is the whole point: the fake voucher claims to be the administrator.
  • <saml:Conditions NotBefore="..." NotOnOrAfter="..."/> gives the voucher a validity window, from 10:00 to 11:00 on 14 November 2026. NotBefore means "not valid before this time" and NotOnOrAfter means "not valid at or after this time".
  • The second block is the original signed assertion, byte for byte. Its <ds:Reference URI="#_assert_valid_123"> still points at itself, and <ds:SignatureValue> is still the genuine seal.
  • The forged block sits above the signed one, so a query that takes the first match picks up the fake.

Why this works: the fake assertion needs no seal at all. It only needs to be first in line. The signed assertion stays untouched, so the maths still checks out on it. The two checks are answering different questions about different parts of the same document.

Step 3: Sending the payload

The modified XML was base64-encoded and sent straight to the ACS endpoint:

Bash
POST /api/v1/auth/saml/acs HTTP/2
Host: app.target-platform.com
Content-Type: application/x-www-form-urlencoded
SAMLResponse=[redacted]...

Line by line:

  • POST /api/v1/auth/saml/acs HTTP/2 is the request line: the method (POST, meaning "here is some data"), the path of the endpoint, and the version of the HTTP protocol being used.
  • Host: app.target-platform.com tells the server which site the request is for. One server can host many sites, so it needs to know which one you mean.
  • Content-Type: application/x-www-form-urlencoded says the body is formatted like a web form: name=value pairs, with special characters encoded.
  • SAMLResponse=... is the body. The name SAMLResponse is the form field the ACS expects, and the value is the whole XML document, base64-encoded. The ... at the end is the report shortening the string; the real value is the full encoded document.

What happened on the server, in order:

  • Signature verification. The security library found <ds:Signature>, followed URI="#_assert_valid_123" to the genuine assertion, checked that it had not been altered, and returned valid = true.
  • Identity resolution. The application code then asked for the first <saml:Assertion> in the document, found the forged one, read [redacted] out of _assert_forged_999, and issued a session JWT bound to the organisation's administrator account.

So the seal was checked on one block and the name was taken from another. Both steps behaved exactly as written; the problem was that nothing joined them together.

Why it worked

The mistake is the split between checking and using. The signature library is asked a narrow question: "is there a valid signature over the element with this ID, somewhere in this document?" It answers yes, truthfully. The application then asks a different question: "what is the first assertion in this document?" and trusts the answer. Nothing ties the two answers together, so an unsigned block placed earlier in the tree wins.

The existing defences did not catch it because neither layer was wrong on its own terms. The cryptographic check was genuine, and the XPath expression was syntactically valid. The failure was in the contract between them. Strict schema validation, which would have rejected the duplicate assertion, was evidently not enforced before the signature check, since the modified payload was accepted.

What an attacker could do with it

Someone holding a single legitimate voucher for an ordinary account could forge a session for any account they named. In the demonstrated case the forged NameID was the organisation administrator's email, and the ACS issued a session JWT bound to that administrator account. The precondition is that the attacker can obtain a valid signed voucher from the organisation's IdP. The report does not describe what was done with the resulting session beyond obtaining it.

How to fix it

The report lists three fixes:

  • Enforce strict XML Schema (XSD) validation. An XSD is a formal description of what a valid XML document may contain: which tags, in what order, how many times. Checking incoming SAML responses against the official OASIS SAML 2.0 schemas before the signature check would reject unexpected duplicate elements or non-standard wrapper nodes.
  • Extract data only from verified nodes. The application should read <saml:Subject> and <saml:AttributeStatement> from the exact node object the signature routine returned, rather than running a separate, unanchored XPath query.
  • Require top-level response signatures. Configure the Service Provider to demand a signature covering the whole <samlp:Response> root element, rather than individual nested assertions.

The report does not say which of these the platform implemented.

Other shapes of the same bug

  • Duplicate assertion before the signed one. Put an unsigned <saml:Assertion> above the signed one. A positive result is a session issued instead of a signature error.
  • Wrapping the signed assertion inside an extension element. Move the original signed assertion into a wrapper node while a forged assertion sits where the parser reads, and watch how the parser copes.

How to look for this yourself

This class of bug hides wherever a SAML Service Provider uses one library to check signatures and separate application code to read identity, which is common in custom ACS endpoints such as POST /api/v1/auth/saml/acs.

The practical test is cheap: capture one legitimate assertion from a low-privilege account, duplicate the assertion block, and see whether the endpoint still issues a session. A 302 Found with a session cookie, where a signature failure was expected, is the confirmation that the binding is broken.

Glossary

  • ACS (Assertion Consumer Service): the endpoint on a Service Provider that receives SAML vouchers from users' browsers.
  • API: the set of addresses a program exposes so other programs can talk to it.
  • Assertion: the statement inside a SAML response saying who the user is; the voucher.
  • Base64: an encoding that turns any data into plain letters and digits so it can travel as text; not encryption.
  • Certificate: the public half of a key pair, published so others can verify signatures made with the private half.
  • Cookie: a small piece of data a site asks your browser to store and send back on later requests, commonly used to remember that you are logged in.
  • DOM (Document Object Model): the in-memory tree a program builds when it reads an XML document.
  • Digital signature: a mathematical seal proving that content came from the holder of a private key and has not been altered.
  • Endpoint: one specific address in an API.
  • HTTP status code: a number a server returns to say how a request went, such as 302 Found.
  • IdP (Identity Provider): the system that checks the user's identity and issues the voucher, for example Okta or Azure AD.
  • JWT (JSON Web Token): a signed string a server hands out and a client presents on later requests to prove who it is.
  • Namespace: a way of labelling XML tags so two standards can both use the same tag name without clashing.
  • SAML 2.0: a set of rules for exchanging login confirmations between an IdP and a Service Provider.
  • Service Provider (SP): the system the user wants to use, which trusts vouchers from the IdP.
  • SSO (Single Sign-On): logging in once with a central service and being trusted by many other systems.
  • Token: a string a server issues and a client presents later to prove identity; a JWT is one kind.
  • X.509: the standard format for public-key certificates.
  • XML: a way of writing structured data with nested tags, forming a tree.
  • XML Digital Signature (xmldsig): the standard for putting digital signatures inside XML documents.
  • XPath: a query language for picking nodes out of an XML tree.
  • XSD (XML Schema Definition): a formal description of what a valid XML document may contain.
  • XSW (XML Signature Wrapping): rearranging an XML document so the part that gets signature-checked is not the part the application actually uses.
  • 302 Found: an HTTP status code meaning the requested thing is elsewhere, often used after a successful login to send the browser onward with a session.

More by T4nv1

View all

113 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

OAuth and single sign-on flaws

The lesson behind this report.

Mistakes in OAuth, OpenID Connect, SAML or token handling that leak codes and tokens or link an attacker's identity to a victim's account.