GHSA-g93m-8x6h-g5gv
Apache ZooKeeper: Authentication bypass with IP-based authentication in Admin Server
Quick fix
GHSA-g93m-8x6h-g5gv — org.apache.zookeeper:zookeeper: upgrade to the fixed version with the command below.
# pom.xml: bump <version>3.9.3</version> for org.apache.zookeeper:zookeeperDetails
When using IPAuthenticationProvider in ZooKeeper Admin Server there is a possibility of Authentication Bypass by Spoofing -- this only impacts IP based authentication implemented in ZooKeeper Admin Server. Default configuration of client's IP address detection in IPAuthenticationProvider, which uses HTTP request headers, is weak and allows an attacker to bypass authentication via spoofing client's IP address in request headers. Default configuration honors X-Forwarded-For HTTP header to read client's IP address. X-Forwarded-For request header is mainly used by proxy servers to identify the client and can be easily spoofed by an attacker pretending that the request comes from a different IP address. Admin Server commands, such as snapshot and restore arbitrarily can be executed on successful exploitation which could potentially lead to information leakage or service availability issues. Users are recommended to upgrade to version 3.9.3, which fixes this issue.
Are you affected?
Enter the version of the package you're using.
Affected packages
3.9.0Fixed in: 3.9.3# pom.xml: bump <version>3.9.3</version> for org.apache.zookeeper:zookeeperReferences
- https://nvd.nist.gov/vuln/detail/CVE-2024-51504[ADVISORY]
- https://github.com/apache/zookeeper/commit/2c2b74c1c11b6531aabb1bf06782e859048d5983[WEB]
- https://github.com/apache/zookeeper[PACKAGE]
- https://lists.apache.org/thread/b3qrmpkto5r6989qr61fw9y2x646kqlh[WEB]
- http://www.openwall.com/lists/oss-security/2024/11/06/5[WEB]