Timing attacks against Proxy’s basic authentication are possible
dragonflyoss dragonfly
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/dragonflyoss/dragonfly Go |
|
|
| d7y.io/dragonfly/v2 Go |
|
|
dragonflyoss dragonfly
| Product | Affected | Fixed in |
|---|---|---|
| github.com/dragonflyoss/dragonfly Go |
|
|
| d7y.io/dragonfly/v2 Go |
|
|
Dragonfly is an open source P2P-based file distribution and image acceleration system. Prior to 2.1.0, 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. This vulnerability is fixed in 2.1.0.
From the CVE record · GitHub_M
Before version 2.1.0, Dragonfly’s Proxy access control compares passwords using simple string comparisons. An attacker who can submit password guesses to the Proxy may measure response timing to guess a password one character at a time.
Anyone running Dragonfly before 2.1.0 or using the affected Go packages github.com/dragonflyoss/dragonfly or d7y.io/dragonfly/v2 should check their versions.