7.7high
Harbor fails to validate user permissions while Viewing, updating and deleting Webhook policies
- Severity
- 7.7high CVSS:3.1 by vmware
- Exploit likelihood
- 0.50% (higher than 44% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- vmware
- Also known as
- GHSA-jf8p-3vjh-pq94BIT-HARBOR-2022-31666GHSA-8hwq-5f22-jfr3
Description
Harbor fails to validate user permissions while deleting Webhook policies, allowing malicious users to view, update and delete Webhook policies of other users. The attacker could modify Webhook policies configured in other projects.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Harbor | Harbor 2.x<=2.4.2; 2.5<=2.5.1 | CVE List |
| github.com/goharbor/harbor (Go) | from 1.0.0 before 1.10.13, from 2.0.0 before 2.4.3, from 2.5.0 before 2.5.2 | GitHub Advisory Database |
| linuxfoundation harbor | from 2.0.0 before 2.4.3, from 2.5.0 before 2.5.2 | NVD |
| harbor (Bitnami) | from 2.0.0 before 2.4.3, from 2.5.0 before 2.5.2 | Bitnami Vulnerability Database |
All scores
| vmware | 7.7high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N |
| GitHub | 7.7high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N |
| NVD | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N |
| Bitnami Vulnerability Database | high rating |
Classification
What each source says
CVE List
Harbor fails to validate user permissions while deleting Webhook policies, allowing malicious users to view, update and delete Webhook policies of other users. The attacker could modify Webhook policies configured in other projects.
GitHub Advisory Database
Impact
Harbor fails to validate the user permissions to view Webhook policies including relevant credentials configured in different projects the user doesn’t have access to, resulting in malicious users being able to read Webhook policies of other users/projects. API call is
GET /projects/{project_name_or_id}/webhook/policies/{webhook_policy_id}
By sending the below request and specifying different Webhook policy ids in the last part of the URL, the malicious user may disclose Webhook policies related to other repositories/projects.: none;">
Patches
This and similar issues are fixed in Harbor v2.5.2 and later. Please upgrade as soon as possible.
Workarounds
There are no workarounds available.
For more information
If you have any questions or comments about this advisory:
- Open an issue in the Harbor GitHub repository
Credits
Thanks to Gal Goldstein and Daniel Abeles from Oxeye Security for reporting this issue.
NVD (es)
Harbor no puede validar los permisos de los usuarios al eliminar políticas de Webhook, lo que permite que usuarios malintencionados vean, actualicen y eliminen políticas de Webhook de otros usuarios. El atacante podría modificar políticas de Webhook configuradas en otros proyectos.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-31666 changed 2024-11-14 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-jf8p-3vjh-pq94 changed 2026-01-26 | CC-BY-4.0 |
| NVD | CVE-2022-31666 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-HARBOR-2022-31666 changed 2026-09-10 | Apache-2.0 |