CVE-2021-29442 Authentication bypass
Unauthenticated users can access unprotected Derby database endpoints in Nacos when using embedded storage, allowing database queries or deletion.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-29442?
CVE-2021-29442 is a high-severity missing authorization vulnerability in alibaba nacos, published on 27 Apr 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Nacos is a platform designed for dynamic service discovery and configuration and service management. In Nacos before version 1.4.1, 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)
Weakness: CWE-306
Which versions are affected by CVE-2021-29442?
It affects 1 product.
Products include Alibaba Nacos.
How do I fix CVE-2021-29442?
Upgrade to a fixed version.
Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.
Is CVE-2021-29442 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-29442 exists.
Public exploit code: 1 Nuclei template and 2 proofs of concept on GitHub.