Improper Authorization Affecting github.com/drakkan/sftpgo/v2/httpd package, versions >=2.2.0 <2.6.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (11th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Authorization vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMDRAKKANSFTPGOV2HTTPD-7323751
  • published21 Jun 2024
  • disclosed20 Jun 2024
  • creditTien Tran

Introduced: 20 Jun 2024

CVE-2024-37897  (opens in a new tab)
CWE-863  (opens in a new tab)

How to fix?

Upgrade github.com/drakkan/sftpgo/v2/httpd to version 2.6.1 or higher.

Overview

Affected versions of this package are vulnerable to Improper Authorization due to insufficient access control mechanisms. An attacker can gain unauthorized access and perform actions as a legitimate user by exploiting the password reset feature, even if their access should be restricted.

Note: This is only exploitable if the password reset feature is enabled

Workaround

The following workarounds are available:

  1. Keep the password reset feature disabled.

  2. Set a blank email address for users and admins with access restrictions so they cannot receive the email with the reset code and exploit the vulnerability.

References

CVSS Scores

version 4.0
version 3.1