Skip to content

gtrboy/totolink

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TOTOLINK Router CMD Injection

There are three cmd injection vulnerabilities in TOTOLINK routers.
Affected products: including but not limited to TOTOLINK A950RG and TOTOLINK T10.
Affected firmwares: A950RG V5.9c.4216_B20190710 and T10 V5.9c.4096_B20190509
image
image

Vulnerabilities Description

An attacker can execute arbitrary Linux OS commands via "setNTPCfg", "NTPSyncWithHost" and "setDiagnosisCfg" POST requests after login.

Modules Load

/bin/cste_sub: load_modules() function loads all libraries located in directory /lib/cste_modules:
image

Handlers Register

The handlers of "setNTPCfg", "NTPSyncWithHost" and "setDiagnosisCfg" are located in system.so. The module_init() function in system.so registers module handlers:
image

Vulnerabilities

In these handlers, there is no filter to avoid insecure characters, functions directly concatenate the imput strings to system commands.
NTPSyncWithHost:
image
setDiagnosisCfg:
image

POC

image

About

TOTOLINK Router Vuls

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages