Paper/Archive/CVE-2022-50994

CVE-2022-50994

DrayTek Vigor 2960 — DrayTek Vigor 2960 < 1.5.1.4 OS Command Injection via mainfunction.cgi

Description · from the CVE record

DrayTek Vigor 2960 firmware versions prior to 1.5.1.4 contain an OS command injection vulnerability in the CGI login handler that allows unauthenticated remote attackers to execute arbitrary commands by injecting shell metacharacters into the formpassword parameter. Attackers can exploit unsanitized input passed to the otp_check.sh script to achieve remote code execution with web server privileges. Exploitation requires knowledge of a valid username and that the target account has MOTP authentication enabled.

Affected

ProductAffectedFixed inSource
Vigor 2960< 1.5.1.41.5.1.4CNA

Scores by source

VulnCheck (CNA)9.2CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
VulnCheck (CNA)8.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CISA ADPSSVCExploitation: none · Automatable: no · Technical impact: total

References

patchdraytek.co.uk/support/downloads/vigor-2960/older-firmware/firmware-1514?task=download.send&id=2597:readme-v2960-1514&catid=1251advisorydraytek.com/about/newsroom/2021/2021/end-of-life-notification-vigor2960writeupvulncheck.com/advisories/draytek-vigor-2960-os-command-injection-via-mainfunction-cgi