Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/vulndb: potential Go vuln in github.com/goharbor/harbor/src/core/api: GHSA-q9p8-33wc-h432 #1041

Closed
GoVulnBot opened this issue Oct 5, 2022 · 1 comment

Comments

@GoVulnBot
Copy link

In GitHub Security Advisory GHSA-q9p8-33wc-h432, there is a vulnerability in the following Go packages or modules:

Unit Fixed Vulnerable Ranges
github.com/goharbor/harbor/src/core/api 2.0.3 >= 1.9.0, < 2.0.3

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

modules:
  - module: TODO
    versions:
      - introduced: 1.9.0
        fixed: 2.0.3
    packages:
      - package: github.com/goharbor/harbor/src/core/api
  - module: TODO
    versions:
      - fixed: 2.0.3
    packages:
      - package: github.com/goharbor/harbor
description: |-
    ### **Impact**

    Hidde Smit from Cyber Eagle has discovered an User Enumeration flaw in Harbor. The issue is present in the "/users" api endpoint. This endpoint is supposed to be restricted to administrators. This restriction is able to be bypassed and information can be obtained via the "search" functionality.

    Non-administrator users (such as those created via self-registration) can list all usernames and user IDs by sending a GET request to /api/users/search with parameter "username" and value "_", as follows:

    `curl -X GET "https://<host>/api/users/search?username=_" -H "accept: application/json" --user <user>:<password>`

    The vulnerability was immediately fixed by the Harbor team and all supported versions were patched. With the patched versions of Harbor, the username is required for search and we have removed the support for querying by email.

    ### **Patches**
    If your product uses the affected releases of Harbor, update to either version 2.1.0 or 2.0.3 to fix this issue immediately

    https://github.com/goharbor/harbor/releases/tag/v2.1.0
    https://github.com/goharbor/harbor/releases/tag/v2.0.3

    ### **Workarounds**
    There is no workaround for this issue

    ### **For more information**
    If you have any questions or comments about this advisory, contact cncf-harbor-security@lists.cncf.io
    View our security policy at https://github.com/goharbor/harbor/security/policy
    https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-13794
cves:
  - CVE-2020-13794
ghsas:
  - GHSA-q9p8-33wc-h432

@tatianab tatianab added NeedsTriage excluded: EFFECTIVELY_PRIVATE This vulnerability exists in a package can be imported, but isn't meant to be outside that module. duplicate and removed NeedsTriage excluded: EFFECTIVELY_PRIVATE This vulnerability exists in a package can be imported, but isn't meant to be outside that module. labels Oct 5, 2022
@tatianab
Copy link
Contributor

tatianab commented Oct 5, 2022

Duplicate of #865

@tatianab tatianab marked this as a duplicate of #865 Oct 5, 2022
@tatianab tatianab closed this as completed Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants