Authorization Bypass Through User-Controlled Key Affecting github.com/project-zot/zot/pkg/storage/imagestore package, versions <2.1.0


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-GITHUBCOMPROJECTZOTZOTPKGSTORAGEIMAGESTORE-7443587
  • published 11 Jul 2024
  • disclosed 9 Jul 2024
  • credit Blake Burkhart

How to fix?

Upgrade github.com/project-zot/zot/pkg/storage/imagestore to version 2.1.0 or higher.

Overview

Affected versions of this package are vulnerable to Authorization Bypass Through User-Controlled Key due to the GetBlob() function. An attacker can read images that the accessControl policy denies if they have read access to any other second repository.

Notes:

  1. This attack only allows accessing blobs, both config and layers, by digest. Manifests are not included.

  2. This attack requires the attacker to know the name of a private image and its layer digests.

Workaround

The attack may be mitigated by configuring dedupe: false in the "storage" settings. dedupe is enabled by default using the BoltDB cache driver.

References

CVSS Scores

version 4.0
version 3.1
Expand this section

Snyk

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