제출 #1007225: TOTOLINK A3300R V17.0.0cu.592_B20231030 Command Injection정보

제목TOTOLINK A3300R V17.0.0cu.592_B20231030 Command Injection
설명The handler UploadFirmwareFile is the backend endpoint of the firmware upgrade feature and is not referenced by the public part of the web interface. It reads the file_name and content_length fields of the JSON request body, verifies that the claimed length is within the flash capacity and runs a firmware validity check, and on every outcome other than a successful verification it composes the shell string rm -f <file_name> and executes it through CsteSystem, which runs /bin/sh -c with that text as root. The file name is inserted into the command without quoting and without any character validation, so a semicolon in the field terminates the rm invocation and introduces an arbitrary command. Sending a content_length of zero is sufficient to take the failing branch, because zero is not greater than zero, and the cleanup command is then executed unconditionally on the attacker-supplied name. The dispatch table registers the handler as requiring authentication, and it is additionally reachable through the upload endpoint /uploadfile.cgi, which applies no authentication check of its own; the JSON path demonstrated below requires a valid session token, obtained through loginAuth. The result is arbitrary command execution as root, with the additional property that this endpoint is the firmware upgrade path and therefore already the natural target for a persistent compromise.
원천⚠️ https://gist.github.com/H3rmesk1t/2f5fc88e57ce67815db3676ef393068e
사용자 LiuYijun (UID 101805)
제출2026. 09. 30. AM 08:21 (18 날 ago)
모더레이션2026. 10. 17. PM 11:58 (18 days later)
상태중복
VulDB 항목244067 [Totolink A3300R 17.0.0cu.557_B20221024 UploadFirmwareFile file_name 권한 상승]
포인트들0

Do you need the next level of professionalism?

Upgrade your account now!