SSO: It's the SAML SAML Situation (With Apologies to Mötley Crüe)

David Mortman (Chief Security Architect · Dell Software)

BruCON 0x07 · Day 1

Overview

In this BruCON presentation, "SSO: It's the SAML SAML Situation," David Mortman, Chief Security Architect at Dell Software, delivers a candid and often pessimistic assessment of the current state of identity management, single sign-on (SSO), federation, authentication, and authorization. Mortman unequivocally states that this domain is a "sad story" with "no happy ending," highlighting the pervasive challenges organizations face in securing user access in an increasingly complex digital landscape. His talk serves as a critical examination of why, despite decades of effort and the proliferation of standards, identity remains a fundamental and often poorly handled security problem.

Watch on YouTube

Visual summary for SSO: It's the SAML SAML Situation (With Apologies to Mötley Crüe) by David Mortman
Visual summary for SSO: It's the SAML SAML Situation (With Apologies to Mötley Crüe) by David Mortman

Key moments

  1. 0:00 Introduction: Identity management is a sad story.
  2. 6:00 The persistent pain of passwords and MFA challenges.
  3. 10:00 Single Sign-On's broken promise and proprietary failures.
  4. 14:00 SAML: A 'complete nightmare' for enterprise integration.
  5. 18:00 OAuth: Authorization, not authentication, and security trade-offs.
  6. 24:30 Authorization: An even harder problem than authentication.
  7. 28:00 XACML and the power of Attribute-Based Access Control.
  8. 34:00 Conclusion: No happy ending, and Q&A begins.

SSO: It's the SAML SAML Situation (With Apologies to Mötley Crüe)

Speakers: David Mortman, Chief Security Architect, Dell Software

Conference: BruCON

YouTube: https://www.youtube.com/watch?v=dHq_9D-hD2Y

Overview

In this BruCON presentation, "SSO: It's the SAML SAML Situation," David Mortman, Chief Security Architect at Dell Software, delivers a candid and often pessimistic assessment of the current state of identity management, single sign-on (SSO), federation, authentication, and authorization. Mortman unequivocally states that this domain is a "sad story" with "no happy ending," highlighting the pervasive challenges organizations face in securing user access in an increasingly complex digital landscape. His talk serves as a critical examination of why, despite decades of effort and the proliferation of standards, identity remains a fundamental and often poorly handled security problem.

Mortman argues that the industry is "really, really bad" at identity management, citing recurring themes in annual reports like Verizon's DBIR, which consistently identifies identity as a primary vector for breaches, often due to default passwords, password reuse, or lax controls. From small businesses using point-of-sale terminals with common default credentials to large enterprises struggling with complex authorization matrices, the core issue persists. The talk's central thesis is that while the underlying concepts of identity and access management are not "rocket science," their practical implementation is "really, really hard" and often "boring," leading to a lack of investment and effective solutions.

The significance of Mortman's message resonates deeply within the security community, as identity forms the bedrock of almost all security postures. His critique extends beyond mere technical difficulties, touching upon the organizational and cultural inertia that prevents meaningful progress. By dissecting the shortcomings of widely adopted protocols like SAML and OAuth, and the ambitious but often failed promise of XACML, Mortman provides a sobering perspective on the gap between theoretical standards and real-world security efficacy. This article will delve into his analysis, exploring the technical intricacies and defensive implications of his "sad story."

Background

▶ Watch: Introduction: Identity management is a sad story. (0:00)

The challenges in identity management are deeply rooted in decades of evolving computing paradigms and a persistent underestimation of its complexity. Mortman traces the lineage of these problems back to the most basic form of authentication: passwords. For 30 to 50 years, passwords have been the primary defense, yet most users still struggle with them, resorting to weak, reused, or easily guessable combinations. Enterprises often enforce arbitrary complexity rules and frequent changes, leading to user frustration and "post-it note" password storage, effectively undermining security. This fundamental weakness is consistently exploited, as evidenced by Verizon reports highlighting default and reused passwords in breaches, such as those affecting point-of-sale terminals where vendors use the same administrative credentials across thousands of systems.

The industry's attempts to move beyond basic passwords have been fraught with their own difficulties. Multi-factor authentication (MFA), while a significant improvement in principle, often suffers from poor user experience. Mortman recalls carrying multiple physical SecurID tokens for different jobs, highlighting the friction. While solutions like Google Authenticator and the emerging FIDO Alliance with Yubikey integration offer more user-friendly options, their adoption and recovery mechanisms (e.g., backing up Google Authenticator codes) remain hurdles. FIDO, in particular, is presented as a promising authentication fix for individual users, aiming for a standardized, certificate-based, multi-factor approach.

The desire for Single Sign-On (SSO) emerged from the need to centralize authentication and simplify user experience, ideally through a single credential. Early SSO solutions were largely proprietary systems like SiteMinder (a CA product) and IBM's WebSEAL. These worked, but only within highly controlled, homogeneous environments (e.g., Windows domains with specific browser versions). Attempts at broader, internet-scale SSO like Microsoft Passport failed due to lack of trust, while open-source initiatives like the Liberty Federation Project also saw limited adoption. This paved the way for open standards, first with WS-Fed and then SAML, each bringing its own set of complexities and limitations. The core issue, as Mortman emphasizes, is that every additional identity management endpoint exponentially increases the difficulty of user provisioning, role changes, and de-provisioning, a problem painfully illustrated by the Societe Generale breach where a trader retained access to both front and back-office systems, enabling multi-billion-dollar fraud.

Key Findings

▶ Watch: Single Sign-On's broken promise and proprietary failures. (10:00)

David Mortman's talk presents a stark and unflinching assessment of identity and access management (IAM), offering several key findings that underscore the industry's struggles:

  • Pervasive Incompetence in IAM: Mortman repeatedly stresses that organizations are "really, really bad" at managing identity. This isn't just a technical failing but a systemic one, leading to identity being a primary vector in breaches, as consistently highlighted in reports like the Verizon DBIR. The problem is basic but hard, and often considered "boring," leading to underinvestment.
  • SAML is a Standardized Nightmare: The Security Assertion Markup Language (SAML), while designed for secure, federated SSO, is characterized as a "complete nightmare." Its standard is so laden with optional components that "there's actually more optional portions... than there are required portions." This leads to pervasive interoperability issues, with Mortman asserting he has "never seen an integration between two different SAML providers... without custom engineering." A notable deficiency is the frequent omission of single logout, a critical security feature mandated by the standard but rarely implemented.
  • OAuth Prioritizes Simplicity Over Security (v2): OAuth (Open Authorization), though primarily an authorization protocol, is widely used for authentication, especially in consumer contexts. Mortman points out the significant regression from OAuth v1, which included robust security features like encryption and message signing. OAuth v2, in contrast, made these security features optional, leading to its widespread adoption due to simpler implementation but at the cost of inherent security. The subsequent OAuth v3 became a "political nightmare," further complicating the landscape.
  • XACML's Powerful Concept, Failed Standard: The eXtensible Access Control Markup Language (XACML) introduced the powerful concept of Attribute-Based Access Control (ABAC), allowing fine-grained permissions based on dynamic attributes (e.g., user role, IP address, resource ownership). However, the XACML standard itself is described as "awful," "unreadable," and "useless." Consequently, while the concept of ABAC is adopted, few organizations actually implement the XACML protocol, instead relying on custom JSON key-value stores for attribute management.
  • Authorization is Exponentially Harder than Authentication: Mortman emphatically states that authorization is "way, way, way, way WAY worse" than authentication. Enterprise environments often manage between 5,000 and 10,000 applications, each with its own native authorization system and complex N-by-N-by-N matrices of roles and permissions. The sheer scale and fragmentation make comprehensive and consistent authorization nearly impossible, leading to critical security gaps like the Societe Generale fraud.
  • Lack of Incentives for Improvement: A core meta-finding is the absence of strong drivers for change. Compliance regimes are often too weak, executives lack understanding, and CIOs/CISOs frequently lack the leverage to compel the necessary, "boring" investments in robust IAM solutions. This inertia perpetuates the cycle of poor implementation and recurring security vulnerabilities.

Technical Deep Dive

▶ Watch: OAuth: Authorization, not authentication, and security trade-offs. (18:00)

Mortman's talk provides a critical dissection of the technical shortcomings and implementation nightmares associated with prevalent identity and access management standards. His analysis focuses on SAML, OAuth, and XACML, detailing why these ambitious protocols often fail to deliver on their promise of secure, streamlined access.

SAML (Security Assertion Markup Language): The Enterprise SSO Nightmare

SAML is positioned as the primary enterprise-level SSO solution, designed for secure, certificate-based authentication and authorization between an Identity Provider (IdP) (which authenticates the user) and a Service Provider (SP) (the application the user wants to access). Mortman's experience, however, paints a grim picture: SAML is a "nightmare" to deploy. The core issue lies in the standard's excessive flexibility, featuring "more optional portions... than there are required portions." This leads to a fragmentation of implementations; different vendors choose to support different subsets of the standard, making seamless interoperability a rarity. Mortman claims he has "never seen an integration between two different SAML providers... work without custom engineering."

A critical security failing Mortman highlights is the widespread absence of Single Log Out (SLO). While the SAML standard requires SLO, which dictates that logging out of one application should terminate all active federated sessions, most implementations omit it. This leaves users vulnerable, as closing an application window does not truly log them out, allowing re-authentication without credentials if they return to the service. The inherent complexity of SAML has even spawned an entire market of hosted IdP services (e.g., Ping, Okta, Microsoft ADFS), demonstrating that organizations often outsource this "pain point" rather than tackling the intricate deployments themselves.

OAuth (Open Authorization): Authorization Misused for Authentication

OAuth is primarily an authorization protocol, not an authentication protocol. Its purpose is to allow a third-party application (e.g., Tweetbot) to act on behalf of a user without giving that application the user's direct credentials. Instead, the user authenticates directly with the service provider (e.g., Twitter) and then grants the third-party app specific permissions.

Mortman details the problematic evolution of OAuth:

  • OAuth v1: This version was designed with robust security features, including encryption and message signing, making it a "better protocol" from a security standpoint.
  • OAuth v2: This version made many of the critical security features optional. While it gained significant traction due to its "simpler to implement" nature (likened to VHS overcoming Betamax), this simplicity came at the cost of security. Mortman notes that there's "no requirement for OAuth to use HTTPS" and "no message signing" by default in v2, leaving security largely "up to the provider."
  • OAuth v3: Described as a "political nightmare," its development stalled, leading to uncertainty about its future.

Beyond the protocol's inherent design flaws, Mortman warns about the user experience. While OAuth generally informs users about the permissions an app requests, these permissions can be overly broad. He cites an example where a LinkedIn app requested access to "see all your first and secondary connections," "send on your behalf," and "respond to your email for you." Such requests often deter users or, if accepted, create significant security risks by granting excessive privileges to third parties, opening doors for phishing or impersonation if an account is compromised.

XACML (eXtensible Access Control Markup Language): The Promise and Failure of ABAC

Authorization, Mortman argues, is "way, way, way, way WAY worse" than authentication. Traditional Role-Based Access Control (RBAC), which maps users to groups and then to roles, simplifies things incrementally. However, the complexity explodes in large enterprises with thousands of applications, each having its own internal authorization system and intricate N-dimensional matrices of permissions.

XACML emerged as an attempt to centralize and standardize authorization, primarily by introducing Attribute-Based Access Control (ABAC). ABAC is presented as a "really cool" concept, allowing fine-grained access decisions based on dynamic attributes associated with the user (e.g., is_employee, department), the resource (e.g., resource_owner, data_sensitivity), and the environment (e.g., source_IP, time_of_day). Mortman illustrates ABAC's power with a compelling anecdote: a developer accidentally terminated all development databases in AWS because he had full admin credentials, a disaster that could have been prevented by an ABAC rule like "only the person who owns a resource can terminate that resource." Other ABAC use cases include forcing MFA for users connecting from unusual IP ranges (e.g., China).

Despite the power of ABAC, Mortman contends that the XACML standard itself is fundamentally flawed: "It's XML-based because XML is the future, right? ... It's so awful." He describes the standards as "unreadable" and the samples as "useless." Consequently, "almost no one actually uses XACML." Instead, organizations that implement ABAC concepts typically create custom solutions, often using simpler JSON key-value stores with Active Directory or LDAP to manage attributes. XACML's failure means that its powerful ABAC capabilities remain largely inaccessible for commercial off-the-shelf (COTS) applications, SaaS, PaaS, or IaaS platforms, limiting its impact to custom, in-house applications.

In summary, Mortman paints a picture of a fragmented, complex, and often insecure identity landscape. SAML is too intricate, OAuth v2 too permissive, and XACML too poorly designed as a standard, leaving organizations to grapple with fundamental security challenges without truly robust, universally adopted solutions.

Demo / Proof of Concept

▶ Watch: Authorization: An even harder problem than authentication. (24:30)

The talk does not feature a live demo or proof of concept of any specific technology or exploit. Instead, Mortman focuses on a comprehensive, high-level analysis of the existing landscape of SSO and authorization technologies, highlighting their inherent challenges and common pitfalls through real-world examples and anecdotes. His presentation is a critical commentary on the state of the art, rather than a demonstration of a new tool or vulnerability.

Defensive Implications

▶ Watch: Conclusion: No happy ending, and Q&A begins. (34:00)

David Mortman's "sad story" of identity and access management carries significant defensive implications for security professionals. Despite the bleak outlook, his analysis points to critical areas where defenders must focus their efforts to mitigate pervasive risks:

  • Prioritize Multi-Factor Authentication (MFA) Everywhere: Given the inherent weakness of passwords and the risks of SSO compromise, robust MFA is non-negotiable. Defenders should push for MFA adoption across all critical systems and applications. While physical tokens (SecurID) are cumbersome, user-friendly options like Google Authenticator and emerging standards like FIDO Alliance (with Yubikey support) offer viable paths. The goal is to make MFA as frictionless as possible for users while ensuring strong authentication.
  • Enforce Strong Password Policies and Management: While imperfect, passwords remain a first line of defense. Organizations must enforce policies that discourage reuse and promote strong, unique passwords, ideally by encouraging the use of password managers. This also extends to third-party vendors and point-of-sale systems, where default or common credentials are a major breach vector.
  • Scrutinize SAML Implementations: Defenders must be highly skeptical of "standards-compliant" SAML deployments. It is crucial to verify that Single Log Out (SLO) is properly implemented and functional to prevent session persistence after a user logs out of an application. Furthermore, thorough testing of SAML integrations between different providers is essential to identify and address custom engineering requirements or overlooked options.
  • Understand OAuth Permissions and Risks: For applications using OAuth, especially in consumer or public-facing contexts, defenders must educate users and thoroughly review the scope of permissions requested by third-party applications. Over-privileged grants (e.g., an app requesting to "send on your behalf") can lead to significant impersonation and data leakage risks. Organizations should guide users to understand what access they are granting and encourage minimal privilege.
  • Implement Attribute-Based Access Control (ABAC) Concepts: Even if the XACML standard itself is impractical, the principles of ABAC are vital. Defenders should strive to implement fine-grained authorization rules based on dynamic attributes like user role, resource ownership, source IP address, and time of day. Mortman's anecdote of the accidental AWS database termination highlights how ABAC can prevent both malicious and accidental data loss. This involves mapping user and resource attributes (often from Active Directory or LDAP) to access policies.
  • Centralize and Streamline Authorization Management: The "N-by-N-by-N" authorization matrix across thousands of applications is unsustainable. While a universal solution is lacking, defenders should push for greater centralization of authorization policies and group management (e.g., using Active Directory groups mapped to application roles). Regular reviews of roles and permissions are critical, especially during employee role changes or departures, to prevent privilege creep (as seen in the Societe Generale case).
  • Allocate Sufficient Resources to IAM: Mortman repeatedly calls identity management "boring," but its foundational importance cannot be overstated. Defenders must advocate for adequate budget, personnel, and executive support for IAM initiatives, treating it as a critical security program rather than an afterthought or a mere compliance checkbox.
  • Go Beyond Minimum Compliance: Current compliance regimes often set a low bar for identity security. Defenders should recognize that merely meeting compliance requirements is insufficient to protect against sophisticated threats. A proactive, risk-based approach that addresses the practical shortcomings of current standards is necessary.

In essence, defenders must accept the inherent difficulties of IAM, meticulously review existing implementations, and strategically adopt solutions that provide tangible security benefits, even if they require custom effort or deviate from perfectly ideal standards.

Key Takeaways

  • Identity Management is Fundamentally Broken: Despite decades of effort and numerous standards, identity and access management remains a "sad story" with pervasive implementation issues, making it a primary vector for security breaches.
  • SAML's Complexity Hinders Security: The SAML standard's excessive optionality leads to interoperability nightmares and common omissions of critical security features like Single Log Out, requiring extensive custom engineering for functional deployments.
  • OAuth v2 Sacrifices Security for Simplicity: OAuth v2, while widely adopted due to its ease of implementation, made crucial security features optional, leaving applications vulnerable if providers do not implement additional safeguards. It's an authorization protocol often misused for authentication.
  • ABAC is Powerful, XACML is Not: Attribute-Based Access Control (ABAC) offers robust, fine-grained authorization capabilities to prevent accidental or malicious actions, but the XACML standard itself is too complex and poorly designed for widespread adoption, leading to custom, simpler implementations of ABAC concepts.
  • Authorization is the Hardest Problem: Managing authorization across thousands of enterprise applications, each with unique, native access control systems, presents an exponentially greater challenge than authentication, leading to significant security gaps and the potential for catastrophic fraud.
  • Lack of Incentive Perpetuates the Problem: Current compliance requirements are insufficient, and executive leadership often lacks the understanding or leverage to drive the necessary, albeit "boring," investments in robust identity and access management, leaving organizations continuously vulnerable.

About the Speaker(s)

David Mortman is the Chief Security Architect at Dell Software. He holds the impressive title of Distinguished Engineer, a notable achievement given his self-professed lack of direct code writing. Mortman is a seasoned veteran in the security community, having presented at BruCON multiple times, with this talk marking his third appearance at the conference. He brings a pragmatic and often pessimistic perspective to the challenges of enterprise security, drawing on extensive experience that includes a previous role as a CISO, where he managed a relatively small portfolio of five applications but still encountered significant authorization complexities.

Reviews

→ Top-rated talks at BruCON 0x07

All talks from BruCON 0x07