OWASP Hunting

Auth

SAML Vulnerabilities

SAML implementation flaws arise when a service provider consumes an assertion that was not correctly signed, bound to its request, intended for its audience, or still valid. XML structure and signature verification must refer to the same assertion.

Payloads are read from main at 35c1f2b (committed 22 Nov 2026). Project version 1.0.2.

These payloads are for authorized testing only: systems you own, authorized bug bounty programs, or controlled lab environments. Unauthorized testing is illegal.

Payload files

Folder on GitHub

Use the arrow keys to move between payloads. Press Enter or C to copy the focused payload.

saml-vulnerabilities-payloads.txt

41 payloads · 4.8 KB
Source

Loading payloads for SAML Vulnerabilities…

Common Attack Vectors#

  • Response and assertion signature enforcement
  • XML signature wrapping and duplicate ID handling
  • Issuer, audience, destination and recipient validation
  • InResponseTo binding and unsolicited responses
  • Assertion replay, expiry and authentication context
  • Untrusted certificates and metadata
  • RelayState validation

Testing Approach#

Use a local identity provider, a service provider and two test identities. Capture a valid response as the positive control. Change one field at a time. Structural or signature mutations should fail verification; use the trusted lab identity provider to re-sign claim mutations when testing downstream claim validation. XML fragments in the payload file replace matching elements in that captured response; they are not complete signed assertions. Base64-encode the complete XML for HTTP-POST binding and URL-encode form values. Redirect binding additionally requires the correct binding-specific compression and signature handling.

For wrapping tests, verify that the application consumes the same assertion that the signature verified. A parse error, a login page or an HTTP 200 alone proves no bypass. Record the resulting test identity and rejection reason. Replay a captured test assertion twice within its validity window and verify single-use enforcement where required. Never reuse real users' assertions.

References#

Responsible Use

All content in this reference is for authorized security testing only. Use only on systems you own or have explicit written permission to test.

  • Systems and applications you own
  • Authorized penetration testing engagements
  • Bug bounty programs with defined scope
  • Educational lab environments (DVWA, WebGoat, HackTheBox)