Real-life OIDC Security (VI): Reusable state leads to DoS Amplification
The OpenID Connect Core specification does not require the state parameter to be unique or single-use, so an attacker can reuse a state value across many authorisation requests. This enables a denial-of-service amplification attack, as demonstrated by CVE-2020-14302 in Keycloak.
security.lauritz-holtmann.de
Published on security.lauritz-holtmann.de
This is the sixth post of a series on Single Sign-On and OpenID Connect 1.0 security. This post outlines how the missing requirement of the state value within the OpenID Connect Core specification leads to real-life security issues.
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 Core specification does not mandate that the state parameter be unique or single-use, allowing an attacker to reuse a known state value to amplify requests.
Impact
An attacker could cause a denial-of-service amplification attack, potentially overwhelming the identity provider.
What the attacker needed
Knowledge of a valid state value
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 another service, like 'Log in with Google'. The 'state' value is a random string that helps the website match your login request to the response. If the same state value can be reused many times, an attacker can send many requests with it and overload the server, causing a denial of service.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.