[Paper Review] On the security of modern Single Sign-On Protocols: OpenID Connect 1.0.
This paper analyzes OpenID Connect 1.0, a modern SSO protocol built on OAuth, focusing on its Discovery and Dynamic Registration extensions. It identifies a critical security flaw through a novel 'Malicious Endpoints' attack that undermines protocol integrity, and proposes countermeasures to mitigate the vulnerability.
OpenID Connect is a new Single Sign-On authentication protocol, which is becoming increasingly important since its publication in February 2014. OpenID Connect relies on the OAuth protocol, which currently is the de facto standard for delegated authorization in the modern web and is supported by leading companies like, e.g., Google, Facebook and Twitter. An important limitation of OAuth is the fact that it was designed for authorization and not for authentication -- it introduces a concept that allows a third party, e.g., a mobile App or a web application, to only access a subset of resources belonging to a user. However, it does not provide a secure means to uniquely identify the user. Thus, recent research revealed existing problems in case that OAuth is used for authentication nonetheless. These problems result in severe security vulnerabilities. To fill this gap, OpenID Connect was created. It provides federated identity management and authentication by adding authentication capabilities on top of the OAuth protocol. % Although OpenID Connect is a very new standard, companies like Google, Microsoft, AOL and PayPal, who were also involved in the development, use it already. 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 \emph{Discovery} and the \emph{Dynamic Registration} extensions. We show that the usage of these extensions can compromise the security of the entire protocol. We develop a new attack called \emph{Malicious Endpoints} attack, evaluate it against an existing implementation, and propose countermeasures to fix the presented issues.
Motivation & Objective
- To analyze the security of OpenID Connect 1.0, particularly its Discovery and Dynamic Registration extensions.
- To identify and demonstrate a new attack vector that compromises the trust model of OpenID Connect.
- To evaluate the real-world impact of the vulnerability using an existing implementation.
- To propose practical countermeasures to harden the protocol against the identified attack.
Proposed method
- The authors reverse-engineered an existing OpenID Connect implementation to assess its behavior under malicious configuration.
- They designed and executed the 'Malicious Endpoints' attack by manipulating discovery and registration endpoints to redirect authentication flows.
- The attack exploits trust in dynamically registered or discovered endpoints to impersonate identity providers.
- The researchers evaluated the attack's success under real-world conditions, including standard OAuth 2.0 flow interactions.
- They proposed architectural and configuration-level countermeasures to prevent unauthorized endpoint manipulation.
- The analysis was grounded in protocol specification review and practical exploitation testing.
Experimental results
Research questions
- RQ1How do the Discovery and Dynamic Registration extensions in OpenID Connect affect the protocol's security model?
- RQ2Can an attacker manipulate discovery or registration endpoints to subvert authentication?
- RQ3What are the practical consequences of trusting unauthenticated or unverified endpoints in OpenID Connect?
- RQ4To what extent can existing implementations be exploited via endpoint manipulation?
- RQ5What mitigations can effectively prevent the 'Malicious Endpoints' attack without breaking backward compatibility?
Key findings
- The Discovery and Dynamic Registration extensions in OpenID Connect introduce a critical trust boundary flaw that enables a new attack vector.
- The 'Malicious Endpoints' attack allows an adversary to redirect authentication flows and impersonate identity providers.
- The attack was successfully demonstrated against a production-ready OpenID Connect implementation.
- The vulnerability arises from the lack of cryptographic validation for discovered or registered endpoints.
- The authors identified that current implementations do not verify the authenticity of endpoint metadata.
- Countermeasures such as strict metadata validation and endpoint authentication are proposed to prevent the attack.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.