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

    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 ID SNYK-GOLANG-GITHUBCOMDRAKKANSFTPGOV2HTTPD-7323751
  • published 21 Jun 2024
  • disclosed 20 Jun 2024
  • credit Tien Tran

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
Expand this section

Snyk

Recommended
6.3 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Attack Requirements (AT)
    Present
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Confidentiality (VC)
    Low
  • Integrity (VI)
    Low
  • Availability (VA)
    None
  • Confidentiality (SC)
    None
  • Integrity (SI)
    None
  • Availability (SA)
    None