CVE-2021-43298CWE-208

The code that performs password matching when using 'Basic' HTTP authentication does not use a constant-time memcmp and has no rate-limiting

published January 25, 2022

CVSS
—
EPSS
2%
Percentile
82.8
In the wild
Unconfirmed
What it is

⚠️ A crafty attacker can exploit this vulnerability to brute-force passwords by simply timing their responses — no authentication needed! 🦸‍♂️ Think of it like a game of 'guess the number' where you can hear a clock ticking faster or slower based on how close you are. With each guess, if the server takes longer to respond, you’re one step closer to cracking the code! An attacker could potentially gain unauthorized access to sensitive resources by accurately determining the correct password over time. This could lead to data breaches or unauthorized actions, making this vulnerability a risky situation for anyone using Basic HTTP authentication.

Put simply

Think of it like a game of 'guess the number' where you can hear a clock ticking faster or slower based on how close you are. With each guess, if the server takes longer to respond, you’re one step closer to cracking the code! This vulnerability arises because the password matching code does not use a constant-time comparison function nor implement rate-limiting. As a result, attackers can ascertain the correct password by analyzing the response times of the server after each guess.

What to do

An attacker could potentially gain unauthorized access to sensitive resources by accurately determining the correct password over time. This could lead to data breaches or unauthorized actions, making this vulnerability a risky situation for anyone using Basic HTTP authentication. To mitigate this issue, implement a constant-time comparison for password matching in your authentication process. Additionally, ensure rate-limiting is applied to prevent multiple attempts to guess the password in a short time frame. Review affected versions and patch to the latest updates as necessary. You've got this! With these steps, you can fortify your system against this vulnerability and secure your users! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.02256 · 82.8th percentile
Weakness
CWE-208 · Observable Timing Discrepancy
Published
2022-01-25T19:11Z
EPSS history
Timeline
  • 25 JAN 19:11Z
    The code that performs password matching when using 'Basic' HTTP authentication does not use a constant-time memcmp and has no rate-limiting
    cvelistv5