Remote code execution in Draytek Vigor 2960, 3900 and 300B



Published: 2020-02-14
Severity High
Patch available YES
Number of vulnerabilities 1
CVE ID CVE-2020-8515
CWE ID CWE-74
Exploitation vector Network
Public exploit Public exploit code for vulnerability #1 is available.
Vulnerable software
Subscribe
Vigor 2960
Hardware solutions / Routers & switches, VoIP, GSM, etc

Vigor 3900
Hardware solutions / Routers & switches, VoIP, GSM, etc

Vigor 300B
Hardware solutions / Routers & switches, VoIP, GSM, etc

Vendor DrayTek Corp.

Security Advisory

This security advisory describes one high risk vulnerability.

1) Improper Neutralization of Special Elements in Output Used by a Downstream Component

Severity: High

CVSSv3: 8.8 [CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P/RL:O/RC:C] [PCI]

CVE-ID: CVE-2020-8515

CWE-ID: CWE-74 - Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

Description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to the affected devices allow remote code execution as root (without authentication) via shell metacharacters to the "cgi-bin/mainfunction.cgi" URI.

Mitigation

Install updates from vendor's website.

Vulnerable software versions

Vigor 2960: 1.3.1_Beta

Vigor 3900: 1.4.4_Beta

Vigor 300B: 1.3.3_Beta, 1.4.2.1_Beta, 1.4.4_Beta

CPE External links

https://sku11army.blogspot.com/2020/01/draytek-unauthenticated-rce-in-draytek.html
https://www.draytek.com/about/security-advisory/vigor3900-/-vigor2960-/-vigor300b-router-web-management-page-vulnerability-(cve-2020-8515)/

Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

How the attacker can exploit this vulnerability?

The attacker would have to send a specially crafted request to the affected device in order to exploit this vulnerability.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability. However, proof of concept for this vulnerability is available.