github drakkan/sftpgo v2.7.6

8 hours ago

Bug fixes

  • WebDAV: return the correct ETag after an upload, or no ETag when it is unavailable.
  • An instance that starts with an empty admins table kept serving the setup page until restart; instances backed by a shared SQL provider now re-check the database.
  • OIDC: bound the authorization request to the user agent.

Security fixes

Hardening

  • Downloading a share restricted to a single directory as a ZIP archive could extend the share to the owner's entire file system; this affects only the in-memory data provider, while other data providers are not impacted. Thanks to Yutaka Sasaki (@SAYUTIM) for the report.
  • SFTP: computing a file hash reads the whole file and now requires the download permission; it previously accepted list. Reported by @cyny666.
  • Self-service changes to a password, profile or two-factor settings wrote the whole account back and could overwrite a concurrent administrator change. They are now conditional on the stored updated_at. Thanks to Thomas Toth for the report.
  • httpd: JWT invalidation is now keyed on the token ID. Invalidation was keyed on the exact token text, so an equivalent Base64URL spelling of the same signed token did not match the stored entry and kept working after a logout. Reported by Corban Villa (@corbanvilla), Sohee Kim (@soh3e) and Austin Chu (@dderpym).
  • Packaging: harden the data directory permissions on install; warn at startup when running with an effective uid of 0.

Don't miss a new sftpgo release

NewReleases is sending notifications on new releases.