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


0.0
medium

Snyk CVSS

    Attack Complexity Low
    Privileges Required High
    Confidentiality High

    Threat Intelligence

    Exploit Maturity Mature
    EPSS 0.25% (65th percentile)
Expand this section
NVD
2.7 low

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.