CVE-2023-52042
Product:
TOTOLINK X6000R
Version:
V9.4.0cu.852_B20230719
Firmware download address :
https://www.totolink.net/home/menu/detail/menu_listtpl/download/id/247/ids/36.html
Vulnerability Description:
In the sub_410118 function of the shttpd program, it is possible to obtain the passed values using Uci_Set_Str and then achieve arbitrary command execution through CsteSystem.
POC
Execute the commands ls > /1.txt
1 |
|
effect
Analysis
In the shttpd function, it is possible to exploit a command execution vulnerability by using the sub_4117F8 function to modify the ‘lang’ value when changing the language.
In Uci_Set_Str, the parameters are concatenated using snprintf and then passed into CsteSystem for execution.
CsteSystem:
CVE-2023-52042
https://kee02p.github.io/2024/01/13/CVE-2023-52042/