medium5.3
CVE-2024-52801
sftpgo vulnerable to brute force takeover of OpenID Connect session cookies
Impact
### 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](https://github.com/rs/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 | Fixed in |
|---|---|---|---|
| go | github.com/drakkan/sftpgo/v2 | >= 2.3.0, < 2.6.4 | 2.6.4 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/drakkan/sftpgo/commit/f30a9a2095bf90c0661b04fe038e3b7efc788bc6
- https://github.com/drakkan/sftpgo/security/advisories/GHSA-6943-qr24-82vx
- https://github.com/rs/xid
- https://github.com/advisories/GHSA-6943-qr24-82vx
- https://nvd.nist.gov/vuln/detail/CVE-2024-52801