Dragonfly server-side request forgery vulnerability
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. Versions prior to 2.1.0 contain a server-side request forgery (SSRF) vulnerability that enables users to force DragonFly2’s components to make requests to internal services that are otherwise not accessible to them. The issue arises because the Manager API accepts a user-supplied URL when creating a Preheat job with weak validation, peers can trigger other peers to fetch an arbitrary URL through pieceManager.DownloadSource, and internal HTTP clients follow redirects, allowing a request to a malicious server to be redirected to internal services. This can be used to probe or access internal HTTP endpoints. The vulnerability is fixed in version 2.1.0.
From the CVE record · GitHub_M
Dragonfly versions before 2.1.0 have a server-side request forgery vulnerability in the Manager API and peer download handling. A user who can create a Preheat job or trigger a peer download can cause Dragonfly components to request URLs that reach otherwise inaccessible internal HTTP services, including through redirects.
Operators using Dragonfly before 2.1.0, including the Go packages github.com/dragonflyoss/dragonfly and d7y.io/dragonfly/v2, should check their installations.