I Made OpenID Connect Stop Checking Signatures (And Got Paid €0
An API endpoint that exchanged OpenID Connect identity tokens for sessions never verified the token's cryptographic signature, so an attacker could forge an unsigned token and obtain a working session for any user. The author demonstrated full account takeover, including reading and writing victim account data, but the report was closed as a duplicate.
Published on medium.com
OpenID Connect has exactly one job that matters. Before it hands you a session, it verifies that the identity token in front of it was actually signed by the issuer who claims to have signed it.
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
The endpoint parsed the token, checked the issuer and claims, and mapped the subject to an account, but never verified the token's signature against the issuer's public keys.
Impact
An attacker could take over any account federated through a registered issuer, with full read and write access including changing the account email and renting bikes billed to the victim; the text notes the subject identifier is stable so the forgery could work indefinitely.
What the attacker needed
A client identifier from the public app; knowledge of a victim's subject identifier; network access to the API
The fix
The endpoint should verify the token's signature against the issuer's published signing keys before accepting it.
How it was found
- Extract the API base URL and a client identifier from the in-scope Android app.
- Fetch the API documentation endpoint using the client identifier to obtain an OpenAPI specification.
- Identify the partner token login endpoint in the specification.
- Forge an unsigned identity token with a chosen subject and issuer.
- Submit the forged token to the login endpoint and receive a session credential.
- Use the session credential to read and modify the account.
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.
When you sign in with a service like Google, that service gives your app a digitally signed note saying who you are. The app is supposed to check the signature to make sure the note is genuine. This API skipped that check, so anyone could write a fake note claiming to be someone else and get logged in as them.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.