vendor:
GPT-2541GNAC-N1
by:
Leonardo Nicolas Servalli
5.5
CVSS
MEDIUM
Privilege escalation
269
CWE
Product Name: GPT-2541GNAC-N1
Affected Version From:
Affected Version To:
Patch Exists: NO
Related CWE:
CPE:
Platforms Tested: Mistrastar router devices GPT-2541GNAC-N1 (HGU)
2021
Mitrastar GPT-2541GNAC-N1 – Privilege escalation
Mitrastar GPT-2541GNAC-N1 devices are provided with access through ssh into a restricted default shell. The command 'deviceinfo show file <path>' is used from reduced CLI to show files and directories. Because this command does not handle special characters correctly, it is possible to insert a second command as a parameter on the <path> value. By using '&&/bin/bash' as the parameter value, we can spawn a bash console with root privileges.
Mitigation:
To mitigate this vulnerability, it is recommended to update the firmware of the Mitrastar GPT-2541GNAC-N1 devices to the latest version. Additionally, users should change the default credentials for SSH access.