Re-discovering a JWT Authentication Bypass in ServiceStack
ServiceStack before version 5.9.2 did not properly verify JWT signatures, so an attacker could forge arbitrary tokens and bypass authentication and authorisation. The issue was patched by the ServiceStack team without highlighting the actual impact.
shielder.com
Published on shielder.com
ServiceStack before version 5.9.2 failed to properly verify JWT signatures, allowing to forge arbitrary tokens and bypass authentication/authorization mechanisms. The vulnerability was discovered and patched by the ServiceStack team without highlighting the actual impact, so we chose to publish this blog post along…
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 JWT validation logic did not enforce signature verification, so tokens with invalid or missing signatures were accepted.
Impact
An attacker could forge arbitrary tokens and bypass authentication and authorisation mechanisms.
What the attacker needed
ServiceStack before 5.9.2; ability to send crafted JWTs
The fix
The vulnerability was fixed in ServiceStack version 5.9.2.
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 gives you after login to prove who you are. It is signed so the server can check it was not tampered with. Here the server did not check the signature properly, so anyone could make up their own token and pretend to be another user.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.