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.
{
"extracted_events": [
{
"introduced": "1.7.0-NA"
},
{
"last_affected": "1.7.0-NA"
},
{
"introduced": "1.7.0-rc1"
},
{
"last_affected": "1.7.0-rc1"
},
{
"introduced": "1.7.0-rc2"
},
{
"last_affected": "1.7.0-rc2"
},
{
"introduced": "1.7.1"
},
{
"last_affected": "1.7.1"
},
{
"introduced": "1.7.2"
},
{
"last_affected": "1.7.2"
},
{
"introduced": "1.7.3"
},
{
"last_affected": "1.7.3"
},
{
"introduced": "1.7.4"
},
{
"last_affected": "1.7.4"
},
{
"introduced": "1.7.5"
},
{
"last_affected": "1.7.5"
},
{
"introduced": "1.8.0-NA"
},
{
"last_affected": "1.8.0-NA"
},
{
"introduced": "1.8.0-rc1"
},
{
"last_affected": "1.8.0-rc1"
},
{
"introduced": "1.8.0-rc2"
},
{
"last_affected": "1.8.0-rc2"
},
{
"introduced": "1.8.1"
},
{
"last_affected": "1.8.1"
},
{
"introduced": "1.8.2-NA"
},
{
"last_affected": "1.8.2-NA"
},
{
"introduced": "1.8.2-rc2"
},
{
"last_affected": "1.8.2-rc2"
},
{
"introduced": "1.8.2-rc1"
},
{
"last_affected": "1.8.2-rc1"
},
{
"introduced": "1.9.0-rc1"
},
{
"last_affected": "1.9.0-rc1"
}
],
"cpe": [
"cpe:2.3:a:linuxfoundation:harbor:1.7.0:-:*:*:*:*:*:*",
"cpe:2.3:a:linuxfoundation:harbor:1.7.0:rc1:*:*:*:*:*:*",
"cpe:2.3:a:linuxfoundation:harbor:1.7.0:rc2:*:*:*:*:*:*",
"cpe:2.3:a:linuxfoundation:harbor:1.7.1:*:*:*:*:*:*:*",
"cpe:2.3:a:linuxfoundation:harbor:1.7.2:*:*:*:*:*:*:*",
"cpe:2.3:a:linuxfoundation:harbor:1.7.3:*:*:*:*:*:*:*",
"cpe:2.3:a:linuxfoundation:harbor:1.7.4:*:*:*:*:*:*:*",
"cpe:2.3:a:linuxfoundation:harbor:1.7.5:*:*:*:*:*:*:*",
"cpe:2.3:a:linuxfoundation:harbor:1.8.0:-:*:*:*:*:*:*",
"cpe:2.3:a:linuxfoundation:harbor:1.8.0:rc1:*:*:*:*:*:*",
"cpe:2.3:a:linuxfoundation:harbor:1.8.0:rc2:*:*:*:*:*:*",
"cpe:2.3:a:linuxfoundation:harbor:1.8.1:*:*:*:*:*:*:*",
"cpe:2.3:a:linuxfoundation:harbor:1.8.2:-:*:*:*:*:*:*",
"cpe:2.3:a:linuxfoundation:harbor:1.8.2:rc2:*:*:*:*:*:*",
"cpe:2.3:a:linuxfoundation:harbor:1.8.2:rc1:*:*:*:*:*:*",
"cpe:2.3:a:linuxfoundation:harbor:1.9.0:rc1:*:*:*:*:*:*"
],
"source": [
"CPE_STRING",
"REFERENCES"
]
}