Описание
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:
However the following one gets accepted by using the Nacos-Server user-agent header:
Impact
This issue may allow any user to carry out any administrative tasks on the Nacos server.
Пакеты
com.alibaba.nacos:nacos-common
< 1.4.1
1.4.1
Связанные уязвимости
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.
Уязвимость компонента AuthFilter программной платформы Nacos, позволяющая нарушителю повысить свои привилегии