sftpgo vulnerable to brute force takeover of OpenID Connect session cookies
Published 2 Dec 2024 · Updated 2 Dec 2024
Is your project on an affected github.com/drakkan/sftpgo/v2?
Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- >=2.3.0 <2.6.4
- Fixed in
- 2.6.4
go get github.com/drakkan/sftpgo/v2@v2.6.4Details
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
Is GHSA-6943-qr24-82vx in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/drakkan/sftpgo/v2, and gives you the command that fixes it.
More advisories for github.com/drakkan/sftpgo/v2
- LowCVE-2026-77375SFTPGo: Denial of service via malformed SSH channel request in github.com/drakkan/sftpgo · 19 Oct 2026
- LowCVE-2026-103028SFTPGo source-side file-pattern filter bypass during copy operations in github.com/drakkan/sftpgo · 19 Oct 2026
- MediumCVE-2026-103028SFTPGo source-side file-pattern filter bypass during copy operations · 15 Oct 2026
- MediumCVE-2026-77375SFTPGo: Denial of service via malformed SSH channel request · 15 Oct 2026
- LowCVE-2026-49245SFTPGo has stored XSS via inline parameter on public shares and user file download in github.com/drakkan/sftpgo · 7 Jul 2026
- LowCVE-2026-49244SFTPGo has path confinement bypass in public browsable share partial ZIP download in github.com/drakkan/sftpgo · 7 Jul 2026
References
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.