Skip to main content
QUICK REVIEW

[Paper Review] On the security of modern Single Sign-On Protocols: Second-Order Vulnerabilities in OpenID Connect

Vladislav Mladenov, Christian Mainka|arXiv (Cornell University)|Aug 18, 2015
Web Application Security VulnerabilitiesComputer Science15 references12 citations
TL;DR

This paper identifies a new class of second-order vulnerabilities in OpenID Connect, specifically exploiting the Discovery and Dynamic Registration extensions to enable malicious endpoint attacks. These attacks lead to broken authentication, SSRF, code injection, and DoS by storing payloads during registration and executing them later in the authentication flow, undermining the protocol’s security despite correct implementation.

ABSTRACT

OAuth is the new de facto standard for delegating authorization in the web. An important limitation of OAuth is the fact that it was designed for authorization and not for authentication. The usage of OAuth for authentication thus leads to serious vulnerabilities as shown by Zhou et. al. in [44] and Chen et. al. in [9]. OpenID Connect was created on top of OAuth to fill this gap by providing federated identity management and user authentication. OpenID Connect was standardized in February 2014, but leading companies like Google, Microsoft, AOL and PayPal are already using it in their web applications [1], [2], [3], [30]. In this paper we describe the OpenID Connect protocol and provide the first in-depth analysis of one of the key features of OpenID Connect: the Discovery and the Dynamic Registration extensions.We present a new class of attacks on OpenID Connect that belong to the category of second-order vulnerabilities. These attacks consist of two phases: First, the injection payload is stored by the legitimate application. Later on, this payload is used in a security-critical operation. Our new class of attacks - called Malicious Endpoints attacks - exploits the OpenID Connect extensions Discovery and Dynamic Registration. These attacks break user authentication, compromise user privacy, and enable Server Side Request Forgery (SSRF), client-side code injection, and Denial-of-Service (DoS). As a result, the security of the OpenID Connect protocol cannot be guaranteed when these extensions are enabled in their present form. We contacted the authors of the OpenID Connect and OAuth specifications. They acknowledged our Malicious Endpoint attacks and recognized the need to improve the specification [29]. We are currently involved in the discussion regarding the mitigation of the existing issues and an extension to the OAuth specification.

Motivation & Objective

  • To analyze the security of OpenID Connect, particularly its Discovery and Dynamic Registration extensions, which were previously unexamined in depth.
  • To identify and demonstrate a new class of vulnerabilities—second-order attacks—where malicious payloads are stored during protocol setup and executed later.
  • To show that these vulnerabilities compromise user authentication, privacy, and system integrity, even when implementations follow the protocol correctly.
  • To address the gap in automated detection tools for complex, multi-phase SSO protocols like OpenID Connect.
  • To motivate future work on formal modeling and automated analysis tools for distributed SSO systems.

Proposed method

  • Conducted a manual, in-depth reverse engineering and threat modeling of the OpenID Connect protocol, focusing on the Discovery and Dynamic Registration phases.
  • Identified that the protocol allows untrusted endpoints to be registered and later used in security-critical operations without proper validation.
  • Designed and demonstrated practical exploit chains where an attacker injects a malicious endpoint during registration, which is later invoked during authentication.
  • Exploited the lack of mutual authentication between the client and the Identity Provider during discovery and registration to inject and later execute malicious payloads.
  • Validated the attacks in real-world-like scenarios, showing that no implementation flaws or misconfigurations are required—only protocol-level weaknesses.
  • Engaged with the OAuth and OpenID Connect specification authors, leading to acknowledgment and ongoing efforts to improve the standards.

Experimental results

Research questions

  • RQ1How do the Discovery and Dynamic Registration extensions in OpenID Connect introduce new attack vectors beyond traditional first-order vulnerabilities?
  • RQ2Can second-order vulnerabilities—where an attack payload is stored in one phase and executed in a later phase—be successfully exploited in OpenID Connect without implementation flaws?
  • RQ3To what extent do these vulnerabilities compromise user authentication, privacy, and system integrity in real-world deployments?
  • RQ4Why are existing automated tools like SSOScan and AuthScan ineffective at detecting such second-order vulnerabilities in SSO protocols?
  • RQ5What are the implications of these vulnerabilities for other SSO protocols that support similar dynamic trust establishment mechanisms?

Key findings

  • The paper discovered a new class of second-order vulnerabilities in OpenID Connect that arise from the lack of validation and trust establishment during the Discovery and Dynamic Registration phases.
  • These vulnerabilities allow an attacker to register a malicious endpoint during registration, which is later used to execute SSRF, client-side code injection, and DoS attacks during the authentication flow.
  • The attacks bypass traditional security mechanisms because the malicious payload is stored during a legitimate protocol phase and only executed later, making detection difficult.
  • User authentication can be completely broken, as the attacker can forge identity tokens or redirect authentication flows to a malicious Identity Provider.
  • The specification authors acknowledged the findings and are actively working on mitigating these issues in future versions of the OpenID Connect and OAuth specifications.
  • The study reveals a critical gap in current security evaluation practices, which focus only on phase 2 and 3 of SSO protocols, neglecting the earlier discovery and registration phases where these vulnerabilities originate.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.