Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-hw28-333w-qxp3

Опубликовано: 31 июл. 2024
Источник: github
Github: Прошло ревью
CVSS4: 7
CVSS3: 5.5

Описание

Harbor fails to validate the user permissions when updating project configurations

Impact

Harbor fails to validate the maintainer role permissions when creating/updating/deleting project configurations - API call:

  • PUT /projects/{project_name_or_id}/metadatas/{meta_name}
  • POST /projects/{project_name_or_id}/metadatas/{meta_name}
  • DELETE /projects/{project_name_or_id}/metadatas/{meta_name}

By sending a request to create/update/delete a metadata with an name that belongs to a project that the currently authenticated and granted to the maintainer role user doesn’t have access to, the attacker could modify configurations in the current project.

BTW: the maintainer role in Harbor was intended for individuals who closely support the project admin in maintaining the project but lack configuration management permissions. However, the maintainer role can utilize the metadata API to circumvent this limitation. It's important to note that any potential attacker must be authenticated and granted a specific project maintainer role to modify configurations, limiting their scope to only that project.

Patches

Will be fixed in v2.9.5, v2.10.3 and v2.11.0

Workarounds

There are no workarounds available.

Credit

Thanks to Ravid Mazon(rmazon@paloaltonetworks.com), Jay Chen (jaychen@paloaltonetworks.com) Palo Alto Networks for reporting this issue.

Пакеты

Наименование

github.com/goharbor/harbor

go
Затронутые версииВерсия исправления

< 2.9.5

2.9.5

Наименование

github.com/goharbor/harbor

go
Затронутые версииВерсия исправления

>= 2.10.0, < 2.10.3

2.10.3

EPSS

Процентиль: 32%
0.00117
Низкий

7 High

CVSS4

5.5 Medium

CVSS3

Дефекты

CWE-269

Связанные уязвимости

CVSS3: 6.4
nvd
11 месяцев назад

Incorrect user permission validation in Harbor <v2.9.5 and Harbor <v2.10.3 allows authenticated users to modify configurations.

EPSS

Процентиль: 32%
0.00117
Низкий

7 High

CVSS4

5.5 Medium

CVSS3

Дефекты

CWE-269