Skip to content
IAM Insights

Research · Finding · updated · Boston Identity

BI-FIND-2015-0054

Mainka, Mladenov and Schwenk show an attacker's Discovery service can make a client that accepts any OpenID provider send a victim's authorization code to it.

Mainka, Mladenov and Schwenk show that a client willing to sign users in through any OpenID provider can be made to hand a victim's login to an attacker. A planted link starts a login at the client with an identity such as alice@malicious.com. The attacker's Discovery service then names the honest provider's registration and login endpoints but its own token and UserInfo endpoints. The client registers at the honest provider and the user logs in there, seeing only sites they trust. The client then sends the authorization code with its new client_id and client_secret, or in the implicit flow a fresh access token, to the attacker. Because the specification allows every one of these messages, the authors argue the flaw lies in the specification itself and not in one implementation. They verified the attack against MITREidConnect and phpOIDC, two of the four certified libraries.

high confidencebest source: independent researchobserved Aug 2015 – Jan 2025

SourceOn the security of modern Single Sign-On Protocols: Second-Order Vulnerabilities in OpenID Connect · arXiv · · read

About OpenID Connect, OpenID Connect Discovery 1.0, OpenID Connect Dynamic Client Registration 1.0 and Standards.

From the briefing

In 2015, OpenID Connect discovery let an attacker's server choose where a client sent the user's code

Christian Mainka, Vladislav Mladenov and Jörg Schwenk of Ruhr University Bochum examined a step that, they say, earlier single sign-on analyses had left alone: a client finding and registering with an identity provider it has never seen. Using only messages the specification allows, their Malicious Endpoints attacks took codes and client secrets from MITREidConnect and phpOIDC clients. Their preferred fix has the provider name its issuer in the authorization response.

Paper · arXiv · Christian Mainka; Vladislav Mladenov; Jörg Schwenk, Ruhr University Bochum · Aug 18, 2015 · source

Read it in context

Evidence

The passages this finding cites, on the briefing page.

  1. [1]Claim, scope and what was tested
  2. [4]Four Malicious Endpoints attacks
  3. [3]Discovery and Dynamic Registration, security model and second-order vulnerabilities

How to cite

Boston Identity. "In 2015, OpenID Connect discovery let an attacker's server choose where a client sent the user's code," BI-FIND-2015-0054. IAM Insights, November 8, 2026. https://insights.bostonidentity.com/ref/BI-FIND-2015-0054

© 2026 Boston Identity LLC. All rights reserved. Quote up to 100 words with the credit Boston Identity, IAM Insights and a link. How to cite · Terms

Was this claim useful?