What’s Vulnerable › Vulnerabilities

CVE-2022-31667: Harbor fails to validate the user permissions when updating a robot account

Description

Harbor fails to validate the user permissions when updating a robot account that belongs to a project that the authenticated user doesn’t have access to.  By sending a request that attempts to update a robot account, and specifying a robot account id and robot account name that belongs to a different project that the user doesn’t have access to, it was possible to revoke the robot account permissions.

Affected products

How to fix

Upgrade to a fixed version: Harbor 2.4.3, 2.5.2. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2022-31667 or the next vulnerability affects your stack