CVE-2022-31666: Harbor fails to validate user permissions while Viewing, updating and deleting Webhook policies
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/{projectnameorid}/webhook/policies/{webhookpolicyid}
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.
Other sources
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.
— MITRE
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2022-31666?
CVE-2022-31666 is classified as a high severity vulnerability due to improper permission validation allowing unauthorized access to sensitive Webhook policies.
How do I fix CVE-2022-31666?
To resolve CVE-2022-31666, upgrade to Harbor versions 2.5.2, 2.4.3, or 1.10.13, which contain the necessary security patches.
What types of projects are affected by CVE-2022-31666?
CVE-2022-31666 affects all Harbor projects that leverage Webhook policies without proper user permission validation.
Who is at risk for CVE-2022-31666?
Users of Harbor versions 2.5.0 to 2.5.1, 2.0.0 to 2.4.2, and 1.0.0 to 1.10.12 are at risk for CVE-2022-31666.
What does CVE-2022-31666 enable attackers to do?
CVE-2022-31666 enables attackers to read and potentially manipulate Webhook policies configured by other users in various projects.