Cisco IOS Software for Cisco Industrial Routers Virtual Device Server CLI Command Injection (cisco-sa-ios-iot-vds-cmd-inj-VfJtqGhE)

2020-06-10T00:00:00
ID CISCO-SA-IOS-IOT-VDS-CMD-INJ-VFJTQGHE-IOS.NASL
Type nessus
Reporter This script is Copyright (C) 2020 and is owned by Tenable, Inc. or an Affiliate thereof.
Modified 2020-06-10T00:00:00

Description

According to its self-reported version, IOS is affected by a vulnerability in the CLI parsers of Cisco IOS Software for Cisco 809 and 829 Industrial Integrated Services Routers (Industrial ISRs) and Cisco 1000 Series Connected Grid Routers (CGR1000) could allow an authenticated, local attacker to execute arbitrary shell commands on the Virtual Device Server (VDS) of an affected device. The attacker must have valid user credentials at privilege level 15.

Please see the included Cisco BIDs and Cisco Security Advisory for more information.

                                        
                                            #TRUSTED 5125dae70089bb1a9466c46421c10c003b99e25a2ec868ce06eb5f667cc4e91cb95ee5e445c63f45e28101441c56a3e67dd565eec558b30d3541d94e13b2811b1e325d0aaf16ca958d0d400c9426ad4a38ce2ade9298acc4bfeaf723326d80b27c44a28e1c815ff88f765fd94cbe6d3a81c2a43317529e5be956edaab90c122a4fbeeca7ce5d242ff05c9d3317908a41a0aa124b848c3b2a9825064d871026a743988864525f67a6ededfa0fec74cfc402d01fbb66892224c3ca9d8a08cf5f26bbcd579bd461353214d1827034a3e2f9866822fccf6314c2f2d43f7ee551775ef539adc13e4193199f71d683cdc73f80d1a35e56cf45084eb30d68ea97ce025730573ae14b6a4ef590b4f0c84a42be9824cf7ce628e806cea498274e3534a93583f527830b237a640f4397f4c783b9d69965c3cba81a022fac498ee5d9ccf8bbf0d29efce95b9ad279fb18cd030dd874abd53378166f098e0063c06d440b9c0fedb834bc13cccdb83d55b579efc289c962d412e5f4e72c8253e1b8ffdf522a56bc8e836e46528e72eac720b61bca89336e8f3797f44e91815243c3f7aae9245282b6e5dd9e6e14d56217c2ba2cd8cac29b121592d0d9302b553a1795af58ced448beeae611c96d7f76b31ecd639d13660fdcc1bcbad6b218ee3fbf9b16ae9ebeaa9b6accd485b305ddfc68ede0447dab9b1e6129a70fd13c2d3c418f3b83b2bd
#
# (C) Tenable Network Security, Inc.
#

include('compat.inc');

if (description)
{
  script_id(137280);
  script_version("1.4");
  script_set_attribute(attribute:"plugin_modification_date", value:"2020/06/11");

  script_cve_id("CVE-2020-3210");
  script_xref(name:"CISCO-BUG-ID", value:"CSCvq87451");
  script_xref(name:"CISCO-BUG-ID", value:"CSCvr18056");
  script_xref(name:"CISCO-SA", value:"cisco-sa-ios-iot-vds-cmd-inj-VfJtqGhE");
  script_xref(name:"IAVA", value:"2020-A-0239");

  script_name(english:"Cisco IOS Software for Cisco Industrial Routers Virtual Device Server CLI Command Injection (cisco-sa-ios-iot-vds-cmd-inj-VfJtqGhE)");

  script_set_attribute(attribute:"synopsis", value:
"The remote device is missing a vendor-supplied security patch");
  script_set_attribute(attribute:"description", value:
"According to its self-reported version, IOS is affected by a vulnerability in the CLI parsers of Cisco IOS Software
for Cisco 809 and 829 Industrial Integrated Services Routers (Industrial ISRs) and Cisco 1000 Series Connected Grid
Routers (CGR1000) could allow an authenticated, local attacker to execute arbitrary shell commands on the Virtual
Device Server (VDS) of an affected device. The attacker must have valid user credentials at privilege level 15.

Please see the included Cisco BIDs and Cisco Security Advisory for more information.");
  # https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-ios-iot-vds-cmd-inj-VfJtqGhE
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?8d3738e3");
  script_set_attribute(attribute:"see_also", value:"http://tools.cisco.com/security/center/viewErp.x?alertId=ERP-73388");
  script_set_attribute(attribute:"see_also", value:"https://bst.cloudapps.cisco.com/bugsearch/bug/CSCvq87451");
  script_set_attribute(attribute:"see_also", value:"https://bst.cloudapps.cisco.com/bugsearch/bug/CSCvr18056");
  script_set_attribute(attribute:"solution", value:
"Upgrade to the relevant fixed version referenced in Cisco bug IDs CSCvq87451, CSCvr18056");
  script_set_cvss_base_vector("CVSS2#AV:L/AC:L/Au:N/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:L/AC:L/PR:H/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-2020-3210");

  script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
  script_cwe_id(77);

  script_set_attribute(attribute:"vuln_publication_date", value:"2020/06/03");
  script_set_attribute(attribute:"patch_publication_date", value:"2020/06/03");
  script_set_attribute(attribute:"plugin_publication_date", value:"2020/06/10");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:cisco:ios");
  script_set_attribute(attribute:"stig_severity", value:"I");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"CISCO");

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

  script_dependencies("cisco_ios_version.nasl");
  script_require_keys("Host/Cisco/IOS/Version", "Host/Cisco/IOS/Model");

  exit(0);
}

include('cisco_workarounds.inc');
include('ccf.inc');

product_info = cisco::get_product_info(name:'Cisco IOS');

model = toupper(product_info.model);

# Vulnerable model list
if (( model !~ '^ISR(809|829)') &&
    ('CGR' >!< model || model !~ "1\d\d\d(^\d|$)"))
  audit(AUDIT_DEVICE_NOT_VULN, model);

version_list=make_list(
  '15.9(3)M0a',
  '15.9(3)M',
  '15.3(3)JPJ',
  '15.3(3)JAA1',
  '15.0(2)SG11a',
  '12.2(60)EZ16'
);

reporting = make_array(
  'port'     , 0,
  'severity' , SECURITY_HOLE,
  'version'  , product_info['version'],
  'bug_id'   , 'CSCvq87451, CSCvr18056'
);

cisco::check_and_report(
  product_info:product_info,
  reporting:reporting,
  vuln_versions:version_list);