Skip to content

x/vulndb: potential Go vuln in github.com/goharbor/harbor: GHSA-q9x4-q76f-5h5j #704

Closed
@GoVulnBot

Description

@GoVulnBot

In GitHub Security Advisory GHSA-q9x4-q76f-5h5j, there is a vulnerability in the following Go packages or modules:

Unit Fixed Vulnerable Ranges
github.com/goharbor/harbor 2.0.1 >= 2.0.0, < 2.0.1

See doc/triage.md for instructions on how to triage this report.

packages:
  - package: github.com/goharbor/harbor
    versions:
      - introduced: 2.0.0
        fixed: 2.0.1
  - package: github.com/goharbor/harbor
    versions:
      - introduced: 1.7.0
        fixed: 1.10.3
description: "# Impact\nSean Wright from Secureworks has discovered an enumeration
    vulnerability. An attacker can make use of the Harbor API to make unauthenticated
    calls to the Harbor instance. Based on the HTTP status code in the response, an
    attacker is then able to work out which resources exist, and which do not. This
    would likely be accomplished by either providing a wordlist or enumerating through
    a sequence an\nunauthenticated attacker is able to enumerate resources on the
    system. This provides them with information such as existing projects, repositories,
    etc.\n\nThe vulnerability was immediately fixed by the Harbor team.  \n\n# Issue
    \nThe following API resources where found to be vulnerable to enumeration attacks:\n/api/chartrepo/{repo}/prov
    (POST)\n/api/chartrepo/{repo}/charts (GET, POST)\n/api/chartrepo/{repo}/charts/{name}
    (GET, DELETE)\n/api/chartrepo/{repo}/charts/{name}/{version} (GET, DELETE)\n/api/labels?name={name}&scope=p
    (GET)\n/api/repositories?project_id={id} (GET)\n/api/repositories/{repo_name}/
    (GET, PUT, DELETE)\n/api/repositories/{repo_name}/tags (GET)\n/api/repositories/{repo_name}/tags/{tag}/manifest?version={version}
    (GET)\n/api/repositories/{repo_name/{tag}/labels (GET)\n/api/projects?project_name={name}
    (HEAD)\n/api/projects/{project_id}/summary (GET)\n/api/projects/{project_id}/logs
    (GET)\n/api/projects/{project_id} (GET, PUT, DELETE)\n/api/projects/{project_id}/metadatas
    (GET, POST)\n/api/projects/{project_id}/metadatas/{metadata_name} (GET, PUT)\n\n#
    Known Attack Vectors\nSuccessful exploitation of this issue will lead to bad actors
    identifying which resources exist in Harbor without requiring authentication for
    the Harbor API.\n\n# Patches\nIf your product uses the affected releases of Harbor,
    update to version 1.10.3 or 2.0.1 to patch this issue immediately.\n\nhttps://github.com/goharbor/harbor/releases/tag/v1.10.3\nhttps://github.com/goharbor/harbor/releases/tag/v2.0.1\n\n#
    Workarounds\nThere is no known workaround\n\n# For more information\nIf you have
    any questions or comments about this advisory, contact [email protected]\nView
    our security policy at https://github.com/goharbor/harbor/security/policy"
published: 2022-02-11T23:17:25Z
last_modified: 2022-02-11T23:17:25Z
cves:
  - CVE-2019-19030
ghsas:
  - GHSA-q9x4-q76f-5h5j
links:
    context:
      - https://github.com/advisories/GHSA-q9x4-q76f-5h5j

Metadata

Metadata

Assignees

Labels

excluded: EFFECTIVELY_PRIVATEThis vulnerability exists in a package can be imported, but isn't meant to be outside that module.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions