Aktywnie wykorzystywana w atakach
Realtek AP-Router SDK Buffer Overflow Vulnerability
Realtek - AP-Router SDK · Figuruje w katalogu CISA KEV od 2021-11-03. Oznacza to potwierdzone ataki w środowisku produkcyjnym.
Wymagane działanie: Apply updates per vendor instructions.
CVE-2021-35395
KrytyczneCVSS 9.8KEVStreszczenie
Realtek Jungle SDK w wersjach od v2.x do v3.4.14B zawiera wbudowany serwer HTTP z interfejsem zarządzania (webs lub boa), który jest podatny na wiele przepełnień bufora stosu oraz zdalne wykonanie dowolnych poleceń. Podatności występują m.in. w funkcjach formRebootCheck, formWsc, formWlanMultipleAP, formWlSiteSurvey, formStaticDHCP i formSysCmd i wynikają z niebezpiecznego kopiowania parametrów takich jak submit-url, ifname, hostname, peerPin czy sysCmd. Udana eksploatacja pozwala zdalnemu atakującemu na wykonanie dowolnego kodu na urządzeniu.
Ocena ryzyka
Podatność umożliwia zdalnym, nieuwierzytelnionym atakującym przejęcie kontroli nad urządzeniem sieciowym, co może prowadzić do pełnej kompromitacji, włączenia urządzenia do botnetu lub ruchu lateralnego w sieci organizacji.
Rekomendacja
Należy zaktualizować oprogramowanie urządzeń wykorzystujących Realtek Jungle SDK do wersji nowszej niż v3.4.14B, a jeśli to niemożliwe — ograniczyć dostęp do interfejsu zarządzania wyłącznie do zaufanych sieci i wyłączyć nieużywane funkcje serwera WWW.
Inne podatności w Realtek Jungle SDK
Oryginalny opis (angielski, źródło NVD)
Realtek Jungle SDK version v2.x up to v3.4.14B provides an HTTP web server exposing a management interface that can be used to configure the access point. Two versions of this management interface exists: one based on Go-Ahead named webs and another based on Boa named boa. Both of them are affected by these vulnerabilities. Specifically, these binaries are vulnerable to the following issues: - stack buffer overflow in formRebootCheck due to unsafe copy of submit-url parameter - stack buffer overflow in formWsc due to unsafe copy of submit-url parameter - stack buffer overflow in formWlanMultipleAP due to unsafe copy of submit-url parameter - stack buffer overflow in formWlSiteSurvey due to unsafe copy of ifname parameter - stack buffer overflow in formStaticDHCP due to unsafe copy of hostname parameter - stack buffer overflow in formWsc due to unsafe copy of 'peerPin' parameter - arbitrary command execution in formSysCmd via the sysCmd parameter - arbitrary command injection in formWsc via the 'peerPin' parameter Exploitability of identified issues will differ based on what the end vendor/manufacturer did with the Realtek SDK webserver. Some vendors use it as-is, others add their own authentication implementation, some kept all the features from the server, some remove some of them, some inserted their own set of features. However, given that Realtek SDK implementation is full of insecure calls and that developers tends to re-use those examples in their custom code, any binary based on Realtek SDK webserver will probably contains its own set of issues on top of the Realtek ones (if kept). Successful exploitation of these issues allows remote attackers to gain arbitrary code execution on the device.

