Advisory

GHSA-6943-qr24-82vx

Also known as: CVE-2024-52801, GO-2024-3300

Summary

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

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-12-02 17:16 UTC
Modified
2024-12-02 22:05 UTC

Affected packages and fixes

github.com/drakkan/sftpgo/v2

Go · All systems

Affected

  • introduced 2.3.0, fixed 2.6.4 (semver)

Fixed versions

2.6.4

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences