SAML 2.0
— Security Assertion Markup Language 2.0SAML 2.0 is the enterprise standard for web browser Single Sign-On (SSO). It allows an Identity Provider (Okta, Azure AD, Ping) to issue cryptographically signed XML assertions verifying a user identity to a cloud SaaS Service Provider (Salesforce, Google Workspace, Slack).
Interactive Session: How SAML 2.0 Works
Step through the packet exchange sequence between nodes.
Interactive Execution Sandbox
Interact with a live or clearly-labelled simulated instance of SAML 2.0.
Threat Model & Attack Simulation
How this protocol is attacked in practice, what defenders can see, and which control stops it.
Threat model & attack simulation
SimulatedDefensive education. Every step runs in this page; no traffic is generated or sent.
SAML signature wrapping
InjectionA forged assertion is inserted beside the signed one so the service provider validates the signature but reads the attacker attributes.
Capture a valid assertion
The attacker obtains their own signed assertion from the IdP.
Replays of assertions for the same account.
Privilege escalation and full SSO account takeover.
Defences that matter
- Validate the signature over the exact consumed element
- Reject duplicate or wrapped assertions
- Audience, recipient and expiry checks
This is a conceptual model for defenders, not an exploit toolkit. It contains no payloads, tooling or instructions for attacking systems you do not own.
Protocol Specification & Architecture
Key characteristics, real-world deployment patterns, and trade-offs.
Core Technical Features
- Role separation: Identity Provider (IdP) and Service Provider (SP)
- XML-encoded security assertions signed with X.509 certificates
- SP-Initiated and IdP-Initiated browser redirect / POST binding flows
- Attribute statements transmitting roles, groups, and department metadata
Real-World Use Cases
- Enterprise SSO for corporate SaaS applications (Slack, Workday, Zoom)
- Cross-domain identity federation between partner companies
Advantages & Strengths
- Eliminates separate user passwords for hundreds of corporate cloud applications
- Centralized IT deprovisioning instantly locks out former employees
Limitations & Vulnerabilities
- Verbose XML payloads with complex XML Signature (XMLDSIG) vulnerabilities if parsers are misconfigured