Skip to content
OAuth / SSO Write-up Intermediate

Vulnerability Disclosure: JWT Authentication Bypass in OpenID Connect Authenticator for Tomcat

The OpenID Connect Authenticator for Tomcat library failed to properly validate JWT signatures, allowing attackers to bypass authentication by using unsigned tokens with arbitrary payloads. An attacker could therefore impersonate any user and gain unauthorised access.

insinuator.net

Published on insinuator.net

During a customer project we identified an issue with the validation of JWT tokens that allowed us to bypass the authentication by using unsigned tokens with arbitrary payloads. During analysis we found out that this is caused by a vulnerability within the library OpenID Connect Authenticator for Tomcat.

The author, on insinuator.net

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 library accepted tokens without verifying their cryptographic signature, so any token with an arbitrary payload was trusted.

What the attacker needed

Access to the affected library version

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.

A JWT is a token a website uses to prove who you are after you log in. It is supposed to be signed by the server so nobody can change it. Here the library did not check that signature, so anyone could make up their own token and pretend to be another user.

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.