Skip to content
OAuth / SSO Write-up Intermediate

Real-life OIDC Security (V): Redirect URI

The OpenID Connect specification's vague handling of redirect URIs can lead to security issues, as demonstrated by CVE-2020-10776 in Keycloak. An attacker could potentially exploit this to redirect authentication responses to an unintended destination.

security.lauritz-holtmann.de

Published on security.lauritz-holtmann.de

This is the fifth post of a series on Single Sign-On and OpenID Connect 1.0 security. This post outlines how the vague specification of the Redirect URI within the OpenID Connect Core specification leads to real-life security issues.

The author, on security.lauritz-holtmann.de

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely, the OpenID Connect specification's vague definition of redirect URI validation allows implementations to accept redirect URIs that can be manipulated by attackers.

Impact

An attacker could potentially redirect authentication responses to a malicious destination, leading to account compromise, as shown by CVE-2020-10776 in Keycloak.

What the attacker needed

Victim clicks a crafted link; attacker controls a redirect URI

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

OpenID Connect is a way for websites to let you log in using an account from another service, like Google. When you log in, the service sends you back to the website with a special code in the web address (the redirect URI). If the website doesn't check that address carefully, an attacker might trick it into sending the code somewhere else, which could let them access your account.

What is OAuth / SSO?

Mistakes in OAuth, OpenID Connect, SAML or token handling that leak codes and tokens or link an attacker's identity to a victim's account.

Similar reports

View all

Same bug class and techniques, clearest first.

OAuth and single sign-on flaws

The lesson behind this report.

Mistakes in OAuth, OpenID Connect, SAML or token handling that leak codes and tokens or link an attacker's identity to a victim's account.