core/api/user.go in Harbor 1.7.0 through 1.8.2 allows non-admin users to create admin accounts via the POST /api/users API, when Harbor is setup with DB as authentication backend and allow user to do self-registration. Fixed version: v1.7.6 v1.8.3. v.1.9.0. Workaround without applying the fix: configure Harbor to use non-DB authentication backend such as LDAP.
| Software | From | Fixed in |
|---|---|---|
| linuxfoundation / harbor | 1.7.0 | 1.7.0.x |
| linuxfoundation / harbor | 1.7.0-rc1 | 1.7.0-rc1.x |
| linuxfoundation / harbor | 1.7.0-rc2 | 1.7.0-rc2.x |
| linuxfoundation / harbor | 1.7.1 | 1.7.1.x |
| linuxfoundation / harbor | 1.7.2 | 1.7.2.x |
| linuxfoundation / harbor | 1.7.3 | 1.7.3.x |
| linuxfoundation / harbor | 1.7.4 | 1.7.4.x |
| linuxfoundation / harbor | 1.7.5 | 1.7.5.x |
| linuxfoundation / harbor | 1.8.0 | 1.8.0.x |
| linuxfoundation / harbor | 1.8.0-rc1 | 1.8.0-rc1.x |
| linuxfoundation / harbor | 1.8.0-rc2 | 1.8.0-rc2.x |
| linuxfoundation / harbor | 1.8.1 | 1.8.1.x |
| linuxfoundation / harbor | 1.8.2 | 1.8.2.x |
| linuxfoundation / harbor | 1.8.2-rc1 | 1.8.2-rc1.x |
| linuxfoundation / harbor | 1.8.2-rc2 | 1.8.2-rc2.x |
| linuxfoundation / harbor | 1.9.0-rc1 | 1.9.0-rc1.x |
github.com/goharbor/harbor/src/core/api
|
1.7.0 | 1.9.0-rc1 |