CVE-2021-22160

Authentication with JWT allows use of “none”-algorithm

published May 26, 2021

Patch now

High probability of exploitation

NVD has not assigned a CVSS score to this record. It sits in the 99.0th percentile for exploit probability.

CVSS
—
EPSS
53%
Percentile
99.0
In the wild
Unconfirmed
What it is

⚠️ A JWT token with a "none" algorithm is your golden ticket! An attacker can connect to Apache Pulsar instances impersonating any user — including admins! 🔥 Think of it like a restaurant that allows anyone to walk in and say they're a VIP just because they waved a 'VIP card' with no verification needed. If no one checks the card's authenticity, anyone could claim the best table! This oversight is absolutely devastating! An attacker could slip into your Pulsar instance and gain access to sensitive data, or worse, take over administrative functions. The potential for chaos is real and could lead to unauthorized data manipulation or even data breaches!

Put simply

Think of it like a restaurant that allows anyone to walk in and say they're a VIP just because they waved a 'VIP card' with no verification needed. If no one checks the card's authenticity, anyone could claim the best table! This vulnerability arises because the signature validation for JWTs is skipped if the algorithm is set to 'none'. As a result, an attacker can craft a token that impersonates any user without needing a valid signature, effectively bypassing authentication controls.

What to do

This oversight is absolutely devastating! An attacker could slip into your Pulsar instance and gain access to sensitive data, or worse, take over administrative functions. The potential for chaos is real and could lead to unauthorized data manipulation or even data breaches! To defend against this vulnerability, ensure that all tokens issued use a proper signing algorithm. Update your Pulsar configuration to disallow the 'none' algorithm and enforce robust validation for all incoming tokens. Regularly review your security settings to ensure compliance! You've got this! With these steps, you'll have your Apache Pulsar secured in no time! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.52926 · 99.0th percentile
Published
2021-05-26T12:22Z
EPSS history
Timeline
  • 26 MAY 12:22Z
    Authentication with JWT allows use of “none”-algorithm
    cvelistv5