CVE-2024-23771

darkhttpd before 1.15 uses strcmp (which is not constant time) to verify authentication, which makes it easier for remote attackers to bypass authentication…

Critical · published January 22, 2024

CVSS v3.1
9.8
EPSS
1%
Percentile
64.1
In the wild
Unconfirmed
What it is

🚨 A sneaky timing attack can slip right past authentication checks in darkhttpd versions before 1.15! 🔥 Think of it like a waiter who takes too long to respond to a request — if you're quick enough, you can catch the subtle hints of their hesitation to discern what’s being ordered. In the same way, attackers can exploit the timing differences in response to bypass authentication checks. This vulnerability allows an attacker to bypass authentication entirely, potentially granting them unauthorized access to sensitive resources. If exploited, they could manipulate data, escalate privileges, or entirely compromise the server—an absolutely devastating scenario!

Put simply

Think of it like a waiter who takes too long to respond to a request — if you're quick enough, you can catch the subtle hints of their hesitation to discern what’s being ordered. In the same way, attackers can exploit the timing differences in response to bypass authentication checks. The issue arises from the use of strcmp, which isn't constant time, allowing attackers to glean information about valid credentials based on how long the server takes to respond during authentication.

What to do

This vulnerability allows an attacker to bypass authentication entirely, potentially granting them unauthorized access to sensitive resources. If exploited, they could manipulate data, escalate privileges, or entirely compromise the server—an absolutely devastating scenario! Upgrade darkhttpd to version 1.15 or later immediately to mitigate this vulnerability. Additionally, consider implementing rate limiting and monitoring for unusual access patterns to bolster your defenses. 🛡️ You’ve got the power to secure your systems! Follow these steps, and you'll have thwarted this vulnerability in no time! 😄

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01055 · 64.1th percentile
Published
2024-01-22T00:00Z
EPSS history
Timeline
  • 22 JAN 00:00Z
    darkhttpd before 1.15 uses strcmp (which is not constant time) to verify authentication, which makes it easier for remote attackers to bypass authentication…
    cvelistv5