NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Go

CVE-2024-52801: sftpgo vulnerable to brute force takeover of OpenID Connect session cookies

mediumCVSS 4.0 5.3GHSA-6943-qr24-82vx

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.

Published Dec 2, 2024

Affected packages

github.com/drakkan/sftpgo/v2

Ecosystem
Go
Affected
>= 2.3.0, < 2.6.4
Fixed in
2.6.4
Check
go list -m github.com/drakkan/sftpgo/v2

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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

Credited to denisvr72.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Go vulnerabilities

All Go entries