제출 #977218: TOTOLINK A3002MU V1.0.0-B20230403.1455 OS Command Injection정보

제목TOTOLINK A3002MU V1.0.0-B20230403.1455 OS Command Injection
설명The WPS configuration handler of the TOTOLINK A3002MU passes the peerPin request parameter directly into a shell command that is executed with system() as root. The handler is selected by posting to /boafrm/formWsc with a non-empty setPIN field; it then reads peerPin through the generic parameter getter sub_4101C8, which applies a 4096-byte upper bound and performs URL decoding but no character filtering whatsoever. The value is formatted into the command template echo %s > /var/wps_peer_pin and the resulting string is passed to system(). Because the template is produced by snprintf rather than by a shell-quoting routine, any shell metacharacter supplied in peerPin is interpreted by /bin/sh: a semicolon, a pipe, an ampersand or a command substitution all execute as root in the context of the web server. The only additional condition is that MIB entry 271, which records the WPS configuration method, must equal 2; that state is reachable by posting WpsMethodDisable=ON to the same handler, and the write is performed with apmib_set(271, &n3) at 0x447CD8 before the value 2 is stored. Since request dispatch is itself unauthenticated, as documented in A3002MU-AUTH-01, an attacker on the network requires no credentials to reach the sink, and the resulting execution context is a root shell on the device. The template also gives the attacker a convenient exfiltration channel: because /var/web is the Boa document root, a payload that redirects command output into a file under that directory can be retrieved over unauthenticated HTTP, which removes any dependence on the response body of the triggering request.
원천⚠️ https://gist.github.com/H3rmesk1t/b15720440179077fb761cdc1b841e577
사용자
 H3rmesk1t (UID 70306)
제출2026. 09. 14. AM 10:57 (21 날 ago)
모더레이션2026. 10. 05. AM 12:17 (21 days later)
상태중복
VulDB 항목407552 [Totolink A3002MU Hh-B20211125.1046 /boafrm/formWsc localPin 권한 상승]
포인트들0

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!