Path Traversal Affecting github.com/minio/minio/cmd package, versions *


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    Exploit Maturity
    Mature
    EPSS
    0.47% (77th 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-GITHUBCOMMINIOMINIOCMD-2964945
  • published 2 Aug 2022
  • disclosed 2 Aug 2022
  • credit Lenin Alevski

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

github.com/minio/minio/cmd is an open source object storage server compatible with Amazon S3 APIs.

Affected versions of this package are vulnerable to Path Traversal which allows users authorized for admin:ServerUpdate to selectively trigger an error that in response, returns the content of the path requested.

Note: The issue was resolved since version RELEASE.2022-07-29T19-40-48Z

PoC:

mc admin update alias/ /etc/passwd

The error response will contain the contents of the /etc/passwd file.

Mitigation:

Disabling the ServerUpdate API by denying the admin:ServerUpdate action for your admin users via IAM policies.

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
4.9 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    High
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    High
  • Integrity (I)
    None
  • Availability (A)
    None
Expand this section

NVD

2.7 low