Podatność w komponencie Admin Server Apache ZooKeeper pozwala nieuwierzytelnionemu atakującemu na ominięcie uwierzytelniania opartego na adresie IP poprzez sfałszowanie nagłówka HTTP X-Forwarded-For. Jest to krytyczna luka, ponieważ umożliwia wykonanie uprzywilejowanych poleceń administracyjnych bez żadnych poświadczeń.
▸ Pokaż oryginał (EN)
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.
Mechanizm IPAuthenticationProvider w ZooKeeper Admin Server domyślnie odczytuje adres IP klienta z nagłówka HTTP X-Forwarded-For, który jest łatwy do sfałszowania przez atakującego. Atakujący może umieścić w tym nagłówku adres IP uprawnionego klienta, co skutkuje nieprawidłowym przyznaniem dostępu przez serwer. Ponieważ nagłówek X-Forwarded-For jest standardowo stosowany przez serwery proxy do przekazywania oryginalnego adresu klienta, domyślna konfiguracja nie weryfikuje jego autentyczności, co czyni mechanizm uwierzytelniania nieskutecznym.
Atakujący może bez uwierzytelnienia wykonać uprzywilejowane polecenia Admin Server, takie jak tworzenie i przywracanie snapshotów, co może prowadzić do wycieku wrażliwych informacji lub zakłócenia dostępności usługi.
Należy zaktualizować Apache ZooKeeper do wersji 3.9.3, która eliminuje tę podatność. Do czasu wdrożenia patcha zaleca się ograniczenie dostępu do Admin Server na poziomie sieci (firewall) oraz unikanie polegania wyłącznie na uwierzytelnianiu opartym na adresie IP z nagłówków HTTP.
Apache ZooKeeper z włączonym IPAuthenticationProvider w Admin Server; zalecana aktualizacja do wersji 3.9.3
Podatność dotyczy wyłącznie konfiguracji korzystających z IPAuthenticationProvider w ZooKeeper Admin Server. Domyślne instalacje nieużywające tego mechanizmu uwierzytelniania nie są zagrożone.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:HApache Zookeeper
APPApache3.9.0 – 3.9.3 (bez)
Powiązane podatności
Authorization Bypass Through User-Controlled Key vulnerability in Apache ZooKeeper. If SASL Quorum Peer authen...
Improper handling of configuration values in ZKConfig in Apache ZooKeeper 3.8.5 and 3.9.4 on all platforms all...
Hostname verification in Apache ZooKeeper ZKTrustManager falls back to reverse DNS (PTR) when IP SAN validatio...
No authentication/authorization is enforced when a server attempts to join a quorum in Apache ZooKeeper before...
Two four letter word commands "wchp/wchc" are CPU intensive and could cause spike of CPU utilization on Apache...