Blind Command Injection Vulnerability in Grandstream Products - Nessus

High   Plugin ID: 123796

This page contains detailed information about the Blind Command Injection Vulnerability in Grandstream Products Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 123796
Name: Blind Command Injection Vulnerability in Grandstream Products
Filename: grandstream_networking_2019_003.nasl
Vulnerability Published: 2019-03-22
This Plugin Published: 2019-04-08
Last Modification Time: 2022-05-05
Plugin Version: 1.7
Plugin Type: remote
Plugin Family: Misc.
Dependencies: grandstream_networking_solutions_web_detect.nbin

Vulnerability Information


Severity: High
Vulnerability Published: 2019-03-22
Patch Published: 2019-03-22
CVE [?]: CVE-2019-10656, CVE-2019-10657, CVE-2019-10658
CPE [?]: N/A

Synopsis

The remote device is vulnerable and can be compromised

Description

A Blind Command Injection Vulnerability exists in Grandstream devices:

- The affected devices are: GWN7000 & GWN7610

- A blind command injection vulnerability exists in the 'filename' parameter. An unauthenticated, remote attacker can exploit this to bypass authentication and obtain a root shell.

Solution

Update to the fixed version as per the advisory.

Public Exploits


Target Network Port(s): 80, 443
Target Asset(s): Services/www
Exploit Available: True (GitHub)
Exploit Ease: Exploits (PoCs) are available

Here's the list of publicly known exploits and PoCs for verifying the Blind Command Injection Vulnerability in Grandstream Products vulnerability:

  1. GitHub: https://github.com/scarvell/grandstream_exploits
    [CVE-2019-10656]
  2. GitHub: https://github.com/scarvell/grandstream_exploits
    [CVE-2019-10658]

Before running any exploit against any system, make sure you are authorized by the owner of the target system(s) to perform such activity. In any other case, this would be considered as an illegal activity.

WARNING: Beware of using unverified exploits from sources such as GitHub or Exploit-DB. These exploits and PoCs could contain malware. For more information, see how to use exploits safely.

Risk Information


CVSS Score Source [?]: CVE-2019-10656
CVSS V2 Vector: AV:N/AC:L/Au:S/C:C/I:C/A:C/E:U/RL:OF/RC:C
CVSS Base Score:9.0 (High)
Impact Subscore:10.0
Exploitability Subscore:8.0
CVSS Temporal Score:6.7 (Medium)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:6.7 (Medium)
CVSS V3 Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C
CVSS Base Score:8.8 (High)
Impact Subscore:5.9
Exploitability Subscore:2.8
CVSS Temporal Score:7.7 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:7.7 (High)

Go back to menu.

Plugin Source


This is the grandstream_networking_2019_003.nasl nessus plugin source code. This script is Copyright (C) 2019-2022 and is owned by Tenable, Inc. or an Affiliate thereof.

#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(123796);
  script_version("1.7");
  script_set_attribute(attribute:"plugin_modification_date", value:"2022/05/05");

  script_cve_id("CVE-2019-10656", "CVE-2019-10657", "CVE-2019-10658");

  script_name(english:"Blind Command Injection Vulnerability in Grandstream Products");
  script_summary(english:"The Grandstream device uses firmware which contains a blind command injection vulnerability.");

  script_set_attribute(attribute:"synopsis", value:
"The remote device is vulnerable and can be compromised");
  script_set_attribute(attribute:"description", value:
"A Blind Command Injection Vulnerability exists in Grandstream 
devices:

   - The affected devices are: GWN7000 & GWN7610

   - A blind command injection vulnerability exists in the 'filename'
     parameter. An unauthenticated, remote attacker can exploit this 
     to bypass authentication and obtain a root shell.");
  script_set_attribute(attribute:"solution", value:
"Update to the fixed version as per the advisory.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:S/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
  script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H");
  script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2019-10656");
  script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
  # https://www.trustwave.com/en-us/resources/security-resources/security-advisories/?fid=23920
  script_set_attribute(attribute:"see_also", value: "http://www.nessus.org/u?0e9e1acb");

  script_set_attribute(attribute:"vuln_publication_date", value:"2019/03/22");
  script_set_attribute(attribute:"patch_publication_date", value:"2019/03/22");
  script_set_attribute(attribute:"plugin_publication_date", value:"2019/04/08");
  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"Misc.");

  script_copyright(english:"This script is Copyright (C) 2019-2022 and is owned by Tenable, Inc. or an Affiliate thereof.");

  script_dependencies("grandstream_networking_solutions_web_detect.nbin");
  script_require_ports("Services/www", 80, 443);

  exit(0);
}

include('vcf.inc');
include('vcf_extras.inc');

port = get_http_port(default:80, embedded:TRUE);
app_info = vcf::get_app_info(app:'Grandstream Networking Solutions', port:port);

models = {
  'GWN7000' : { 'constraints': [{'max_version' : '1.0.4.12', 'fixed_version' : '1.0.6.32', 'fixed_display' : '1.0.6.32'}]},
  'GWN7610' : { 'constraints': [{'max_version' : '1.0.8.9',  'fixed_version' : '1.0.8.18', 'fixed_display' : '1.0.8.18'}]}
};

vcf::grandstream::check_version_and_report(app_info:app_info, constraints:models[app_info.Model]['constraints'], severity:SECURITY_HOLE);

The latest version of this script can be found in these locations depending on your platform:

  • Linux / Unix:
    /opt/nessus/lib/nessus/plugins/grandstream_networking_2019_003.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\grandstream_networking_2019_003.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/grandstream_networking_2019_003.nasl

Go back to menu.

How to Run


Here is how to run the Blind Command Injection Vulnerability in Grandstream Products as a standalone plugin via the Nessus web user interface (https://localhost:8834/):

  1. Click to start a New Scan.
  2. Select Advanced Scan.
  3. Navigate to the Plugins tab.
  4. On the top right corner click to Disable All plugins.
  5. On the left side table select Misc. plugin family.
  6. On the right side table select Blind Command Injection Vulnerability in Grandstream Products plugin ID 123796.
  7. Specify the target on the Settings tab and click to Save the scan.
  8. Run the scan.

Here are a few examples of how to run the plugin in the command line. Note that the examples below demonstrate the usage on the Linux / Unix platform.

Basic usage:

/opt/nessus/bin/nasl grandstream_networking_2019_003.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a grandstream_networking_2019_003.nasl -t <IP/HOST>

Run the plugin with trace script execution written to the console (useful for debugging):

/opt/nessus/bin/nasl -T - grandstream_networking_2019_003.nasl -t <IP/HOST>

Run the plugin with using a state file for the target and updating it (useful for running multiple plugins on the target):

/opt/nessus/bin/nasl -K /tmp/state grandstream_networking_2019_003.nasl -t <IP/HOST>

Go back to menu.

References


See also: Similar and related Nessus plugins:
  • 123520 - Multiple Command Injection Vulnerabilities in Grandstream Products
  • 160530 - Grandstream Networks UCM6200 Series SQLi (Phone Web UI)
  • 160531 - Grandstream Networks UCM6200 Series SQLi (Web UI)
  • 124173 - Multiple Command Injection Vulnerabilities in Grandstream Products
  • 160532 - Grandstream Networks UCM6200 Series SQLi (SIP)
  • 126466 - Citrix SD-WAN Appliance < 10.2.3 Unauthenticated Blind SQL Injection
  • 80960 - ManageEngine Password Manager Pro 6.5 < 7.1 Build 7105 Blind SQL Injection
  • 67120 - McAfee ePO Extension for McAfee Agent Multiple Blind SQL Injection (SB10043)
  • 12213 - TCP/IP Sequence Prediction Blind Reset Spoofing DoS

Version


This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file grandstream_networking_2019_003.nasl version 1.7. For more plugins, visit the Nessus Plugin Library.

Go back to menu.