All reports
Medium

Dragonfly vulnerable to timing attacks against Proxy’s basic authentication

Affected versions

Version ranges need review.

Affected versions
< 2.1.0
Fixed version
2.1.0
Affected versions
<2.1.0
Fixed version
2.1.0
Affected versions
*
Fixed version
Not reported
Affected versions
< 2.1.0
Fixed version
2.1.0

Exploitation

CVE-2025-59350

Probability of exploitation in the next 30 days: 0.34%

FIRST EPSS · 2026-11-22

Description

Impact

The access control mechanism for the Proxy feature uses simple string comparisons and is therefore vulnerable to timing attacks. An attacker may try to guess the password one character at a time by sending all possible characters to a vulnerable mechanism and measuring the comparison instruction’s execution times. The vulnerability is shown in figure 8.1, where both the username and password are compared with a short-circuiting equality operation.

if user != proxy.basicAuth.Username || pass != proxy.basicAuth.Password {

It is currently undetermined what an attacker may be able to do with access to the proxy password.

Patches
  • Dragonfy v2.1.0 and above.

Workarounds

There are no effective workarounds, beyond upgrading.

References

A third party security audit was performed by Trail of Bits, you can see the full report.

If you have any questions or comments about this advisory, please email us at dragonfly-maintainers@googlegroups.com.

Links

Credits

  • gaius-qi