ProtoStackv0.1

Interactive Protocol Visualizer

Security & AuthProfessional trackAdvancedOSI: Application LayerDefault Port: 443 (HTTPS)Standard: OASIS Standard

SAML 2.0

— Security Assertion Markup Language 2.0

SAML 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).

Read first: HTTP / HTTPS, TLS 1.3Content reviewed 2026-11-18

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

Simulated

Defensive education. Every step runs in this page; no traffic is generated or sent.

Attack library

SAML signature wrapping

Injection

A forged assertion is inserted beside the signed one so the service provider validates the signature but reads the attacker attributes.

Attackersimulated
SAML 2.0target
Attack step 1 of 3
Capture a valid assertion

The attacker obtains their own signed assertion from the IdP.

What a defender can see

Replays of assertions for the same account.

Impact if unmitigated

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