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: GHSA-hw28-333w-qxp3 #3013

Closed
GoVulnBot opened this issue Jul 31, 2024 · 1 comment
Labels

Comments

@GoVulnBot
Copy link

Advisory GHSA-hw28-333w-qxp3 references a vulnerability in the following Go modules:

Module
github.com/goharbor/harbor

Description:

Impact

Harbor fails to validate the maintainer role permissions when creating/updating/deleting project configurations - API call:

  • PUT /projects/{project_name_or_id}/metadatas/{meta_name}
  • POST /projects/{project_name_or_id}/metadatas/{meta_name}
  • DELETE /projects/{project_name_or_id}/metadatas/{meta_name}

By sending a request to create/update/delete a metadata with an name that belongs to a project that the currently authenticated and granted to the maintainer role user doesn’t have access to, the attacker could modify configurations in the current project.

BTW: the maintainer ro...

References:

Cross references:

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

id: GO-ID-PENDING
modules:
    - module: github.com/goharbor/harbor
      versions:
        - fixed: 2.9.5+incompatible
        - introduced: 2.10.0+incompatible
        - fixed: 2.10.3+incompatible
      vulnerable_at: 2.10.3-rc1+incompatible
summary: |-
    Harbor fails to validate the user permissions when updating project
    configurations in github.com/goharbor/harbor
cves:
    - CVE-2024-22278
ghsas:
    - GHSA-hw28-333w-qxp3
references:
    - advisory: https://github.com/advisories/GHSA-hw28-333w-qxp3
    - advisory: https://github.com/goharbor/harbor/security/advisories/GHSA-hw28-333w-qxp3
source:
    id: GHSA-hw28-333w-qxp3
    created: 2024-07-31T17:01:23.711036606Z
review_status: UNREVIEWED

@gopherbot
Copy link
Contributor

Change https://go.dev/cl/603235 mentions this issue: data/reports: add 29 unreviewed reports

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants