SQL injection in Grandstream UCM6200 series



Published: 2020-03-23 | Updated: 2020-04-23
Risk High
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2020-5722
CWE-ID CWE-89
Exploitation vector Network
Public exploit Vulnerability #1 is being exploited in the wild.
Vulnerable software
Subscribe
UCM6202 IP PBX
Hardware solutions / Routers & switches, VoIP, GSM, etc

Vendor Grandstream Networks, Inc.

Security Bulletin

This security bulletin contains one high risk vulnerability.

1) SQL injection

EUVDB-ID: #VU27256

Risk: High

CVSSv3.1: 9.4 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H/RL:O/RC:C]

CVE-ID: CVE-2020-5722

CWE-ID: CWE-89 - Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Exploit availability: Yes

Description

The vulnerability allows a remote attacker to execute arbitrary SQL queries in database.

The vulnerability exists due to insufficient sanitization of user-supplied data within a "Forgot Password" feature. A remote attacker can send a specially crafted HTTP request to the affected application and execute arbitrary SQL commands within the application database.

Successful exploitation of this vulnerability may allow a remote attacker to read, delete, modify data in database and gain complete control over the affected application.

Note: This vulnerability allows a remote attacker to execute shell commands as root on versions before 1.0.19.20 or inject HTML in password recovery emails in versions before 1.0.20.17. 

Mitigation

Install update from vendor's website.

Vulnerable software versions

UCM6202 IP PBX: before 1.0.20.17

External links

http://packetstormsecurity.com/files/156876/UCM6202-1.0.18.13-Remote-Command-Injection.html
http://github.com/tenable/poc/blob/master/grandstream/ucm62xx/pbx_sploit.py
http://www.trustwave.com/en-us/resources/security-resources/security-advisories/?fid=23920
http://www.tenable.com/security/research/tra-2020-15


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?

Yes. This vulnerability is being exploited in the wild.



###SIDEBAR###