vendor:
RTF3505VW-N1
by:
Leonardo Nicolas Servalli
7.2
CVSS
HIGH
Privilege Escalation
264
CWE
Product Name: RTF3505VW-N1
Affected Version From: Firmware BR_SV_g000_R3505VMN1001_s32_7
Affected Version To: Firmware BR_SV_g000_R3505VMN1001_s32_7
Patch Exists: NO
Related CWE:
CPE: h:askey:rtf3505vw-n1
Platforms Tested: ASKEY router devices RTF3505VW-N1
2022
ASKEY RTF3505VW-N1 – Privilege escalation
ASKEY RTF3505VW-N1 devices are provided with access through ssh into a restricted default shell (credentials are on the back of the router and in some cases this routers use default credentials). The command “tcpdump” is present in the restricted shell and do not handle correctly the -z flag, so it can be used to escalate privileges through the creation of a local file in the /tmp directory of the router, and injecting packets through port 80 used for the router's Web GUI) with the string ';/bin/bash' in order to be executed by '-z sh'. By using “;/bin/bash” as injected string we can spawn a busybox/ash console.
Mitigation:
Ensure that the router is using strong credentials and that the default credentials are changed.