GitHub Advisory Database
GHSA-6943-qr24-82vx
sftpgo vulnerable to brute force takeover of OpenID Connect session cookies
Details
Impact
The OpenID Connect implementation, in the affected SFTPGo versions, allows authenticated users to brute force session cookies and thereby gain access to other users' data, since the cookies are generated predictably using the xid library and are therefore unique but not cryptographically secure.
Patches
This issue was fixed in version v2.6.4, where cookies are opaque and cryptographically secure strings.
References
https://github.com/drakkan/sftpgo/commit/f30a9a2095bf90c0661b04fe038e3b7efc788bc6
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | github.com/drakkan/sftpgo/v2 | From 2.3.0 before 2.6.4 (fixed in 2.6.4) |