PT-2021-3840 · Nacos · Nacos
CVSS v2.0
10
Critical
| Vector | AV:N/AC:L/Au:N/C:C/I:C/A:C |
Name of the Vulnerable Software and Affected Versions
Nacos versions prior to 1.4.1
Description
Nacos is a platform for dynamic service discovery, configuration, and service management. When configured to use authentication via
-Dnacos.core.auth.enabled=true, the system employs the AuthFilter servlet filter to enforce security. This filter contains a backdoor that allows authentication checks to be bypassed by spoofing the user-agent HTTP header. An attacker can exploit this by using the Nacos-Server value in the user-agent header to gain unauthorized access and perform administrative tasks. Additionally, the /derby endpoint within the ConfigOpsController is not protected by the @Secured annotation, allowing unauthenticated users to execute SQL queries against the embedded Derby database via the sql parameter. This specific issue affects only installations using embedded storage.Recommendations
Update Nacos to version 1.4.1 or later.
As a temporary mitigation, restrict access to the
/derby endpoint to prevent unauthorized database queries.Exploit
Fix
Authentication Bypass by Spoofing
Missing Authentication
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Nacos