Vulnerabilities > CVE-2019-1653 - Information Exposure vulnerability in Cisco Rv320 Firmware and Rv325 Firmware

047910
CVSS 7.5 - HIGH
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
HIGH
Integrity impact
NONE
Availability impact
NONE
network
low complexity
cisco
CWE-200
nessus
exploit available
metasploit

Summary

A vulnerability in the web-based management interface of Cisco Small Business RV320 and RV325 Dual Gigabit WAN VPN Routers could allow an unauthenticated, remote attacker to retrieve sensitive information. The vulnerability is due to improper access controls for URLs. An attacker could exploit this vulnerability by connecting to an affected device via HTTP or HTTPS and requesting specific URLs. A successful exploit could allow the attacker to download the router configuration or detailed diagnostic information. Cisco has released firmware updates that address this vulnerability.

Common Weakness Enumeration (CWE)

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Subverting Environment Variable Values
    The attacker directly or indirectly modifies environment variables used by or controlling the target software. The attacker's goal is to cause the target software to deviate from its expected operation in a manner that benefits the attacker.
  • Footprinting
    An attacker engages in probing and exploration activity to identify constituents and properties of the target. Footprinting is a general term to describe a variety of information gathering techniques, often used by attackers in preparation for some attack. It consists of using tools to learn as much as possible about the composition, configuration, and security mechanisms of the targeted application, system or network. Information that might be collected during a footprinting effort could include open ports, applications and their versions, network topology, and similar information. While footprinting is not intended to be damaging (although certain activities, such as network scans, can sometimes cause disruptions to vulnerable applications inadvertently) it may often pave the way for more damaging attacks.
  • Exploiting Trust in Client (aka Make the Client Invisible)
    An attack of this type exploits a programs' vulnerabilities in client/server communication channel authentication and data integrity. It leverages the implicit trust a server places in the client, or more importantly, that which the server believes is the client. An attacker executes this type of attack by placing themselves in the communication channel between client and server such that communication directly to the server is possible where the server believes it is communicating only with a valid client. There are numerous variations of this type of attack.
  • Browser Fingerprinting
    An attacker carefully crafts small snippets of Java Script to efficiently detect the type of browser the potential victim is using. Many web-based attacks need prior knowledge of the web browser including the version of browser to ensure successful exploitation of a vulnerability. Having this knowledge allows an attacker to target the victim with attacks that specifically exploit known or zero day weaknesses in the type and version of the browser used by the victim. Automating this process via Java Script as a part of the same delivery system used to exploit the browser is considered more efficient as the attacker can supply a browser fingerprinting method and integrate it with exploit code, all contained in Java Script and in response to the same web page request by the browser.
  • Session Credential Falsification through Prediction
    This attack targets predictable session ID in order to gain privileges. The attacker can predict the session ID used during a transaction to perform spoofing and session hijacking.

Exploit-Db

  • fileexploits/hardware/webapps/46262.py
    idEDB-ID:46262
    last seen2019-01-28
    modified2019-01-28
    platformhardware
    port
    published2019-01-28
    reporterExploit-DB
    sourcehttps://www.exploit-db.com/download/46262
    titleCisco RV300 / RV320 - Information Disclosure
    typewebapps
  • fileexploits/hardware/remote/46655.rb
    idEDB-ID:46655
    last seen2019-04-03
    modified2019-04-03
    platformhardware
    port
    published2019-04-03
    reporterExploit-DB
    sourcehttps://www.exploit-db.com/download/46655
    titleCisco RV320 and RV325 - Unauthenticated Remote Code Execution (Metasploit)
    typeremote

Metasploit

Nessus

  • NASL familyCGI abuses
    NASL idCISCO-SA-20190123-RV-INFO_DIRECT.NASL
    descriptionThe remote Cisco Small Business router is affected by a remote information disclosure vulnerability. A remote, unauthenticated attacker can exploit this, via a simple HTTP GET or POST request, to obtain the configuration of the router. This configuration includes device credentials in the form of a plaintext username and an MD5 hashed password that is trivial to crack. These credentials could then be used to authenticate to the router and can be leveraged with a command injection vulnerability (CVE-2019-1652) to allow an attacker to execute arbitrary commands.
    last seen2020-06-01
    modified2020-06-02
    plugin id121395
    published2019-01-25
    reporterThis script is Copyright (C) 2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/121395
    titleCisco Small Business RV320 and RV325 Routers Information Disclosure Vulnerability (cisco-sa-20190123-rv-info) (remote check)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(121395);
      script_version("1.9");
      script_cvs_date("Date: 2019/11/01  9:24:56");
    
      script_cve_id("CVE-2019-1653");
      script_bugtraq_id(106732);
      script_xref(name:"CISCO-SA", value:"cisco-sa-20190123-rv-info");
      script_xref(name:"CISCO-BUG-ID", value:"CSCvg85922");
      script_xref(name:"IAVA", value:"2019-A-0356");
      script_xref(name:"IAVA", value:"0001-A-0009");
    
      script_name(english:"Cisco Small Business RV320 and RV325 Routers Information Disclosure Vulnerability (cisco-sa-20190123-rv-info) (remote check)");
      script_summary(english:"Attempts to obtain the router configuration.");
    
      script_set_attribute(attribute:"synopsis", value:
    "The remote device is affected by an information disclosure
    vulnerability.");
      script_set_attribute(attribute:"description", value:
    "The remote Cisco Small Business router is affected by a remote
    information disclosure vulnerability. A remote, unauthenticated
    attacker can exploit this, via a simple HTTP GET or POST request, to
    obtain the configuration of the router. This configuration includes
    device credentials in the form of a plaintext username and an MD5
    hashed password that is trivial to crack.
    
    These credentials could then be used to authenticate to the router
    and can be leveraged with a command injection vulnerability
    (CVE-2019-1652) to allow an attacker to execute arbitrary commands.");
      # https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20190123-rv-info
      script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?2764da3f");
      # https://www.redteam-pentesting.de/en/advisories/rt-sa-2018-002/-cisco-rv320-unauthenticated-configuration-export
      script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?f0f4af0a");
      script_set_attribute(attribute:"see_also", value:"https://seclists.org/fulldisclosure/2019/Mar/59");
      script_set_attribute(attribute:"see_also", value:"https://github.com/0x27/CiscoRV320Dump");
      script_set_attribute(attribute:"solution", value:
    "Refer to Cisco bug ID CSCvg85922 for any available patches, or
    contact the vendor for a fix.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:N");
      script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
      script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N");
      script_set_cvss3_temporal_vector("CVSS:3.0/E:F/RL:O/RC:C");
      script_set_attribute(attribute:"cvss_score_source", value:"CVE-2019-1653");
      script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"true");
      script_set_attribute(attribute:"metasploit_name", value:'Cisco RV320 and RV325 Unauthenticated Remote Code Execution');
      script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
    
      script_set_attribute(attribute:"exploited_by_nessus", value:"true");
      script_set_attribute(attribute:"in_the_news", value:"true");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2019/01/23");
      script_set_attribute(attribute:"patch_publication_date", value:"2019/01/23");
      script_set_attribute(attribute:"plugin_publication_date", value:"2019/01/25");
    
      script_set_attribute(attribute:"plugin_type", value:"remote");
      script_set_attribute(attribute:"cpe", value:"cpe:/h:cisco:rv320_dual_gigabit_wan_vpn_router");
      script_set_attribute(attribute:"cpe", value:"cpe:/h:cisco:rv320_dual_gigabit_wan_wf_vpn_router");
      script_set_attribute(attribute:"cpe", value:"cpe:/h:cisco:rv325_dual_gigabit_wan_vpn_router");
      script_set_attribute(attribute:"cpe", value:"cpe:/h:cisco:rv325_dual_gigabit_wan_wf_vpn_router");
      script_set_attribute(attribute:"stig_severity", value:"I");
      script_end_attributes();
    
      script_category(ACT_ATTACK);
      script_family(english:"CGI abuses");
    
      script_copyright(english:"This script is Copyright (C) 2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
    
      script_dependencies("http_version.nasl");
      script_exclude_keys("Settings/disable_cgi_scanning");
      script_require_ports("Services/www", 443, 8000, 8007, 8081, 8443);
    
      exit(0);
    }
    
    include("global_settings.inc");
    include("misc_func.inc");
    include("http.inc");
    include("webapp_func.inc");
    include("audit.inc");
    include("data_protection.inc");
    
    app = "Cisco Small Business RV320 Series Router";
    
    port = get_http_port(default:443);
    
    # sanity check this is likely to be RV320/RV325
    res = http_get_cache(item:'/', port:port, exit_on_fail:TRUE);
    
    if ('<form name="form_contents" method="post" action="/cgi-bin/userLogin.cgi">' >!< res ||
        '<input type="hidden" name="portalname" value="CommonPortal">' >!< res ||
        '<input type="hidden" name="auth_key"' >!< res)
    {
      audit(AUDIT_WEB_FILES_NOT, app, port);
    }
    
    item = '/cgi-bin/config.exp';
    res = http_send_recv3(method:'GET', item:item, port:port);
    
    if (isnull(res) ||
        '####sysconfig####' >!< res[2] ||
        'MODEL=' >!< res[2] ||
        'PASSWD=' >!< res[2])
    {
      res = http_send_recv3(method:'POST', item:item, data:'submitbkconfig=0', port:port);
      if (isnull(res) ||
          '####sysconfig####' >!< res[2] ||
          'MODEL=' >!< res[2] ||
          'PASSWD=' >!< res[2])
      {
        audit(AUDIT_LISTEN_NOT_VULN, app, port);
      }
      else
        method = 'POST';
    }
    else
      method = 'GET';
    
    output = data_protection::sanitize_user_full_redaction(output:res[2]);
    
    trailer = 'Which returns the following page via a ' + method  + ' request:\n\n' + output;
    report = get_vuln_report(items:item, port:port, trailer:trailer);
    security_report_v4(severity:SECURITY_WARNING, port:port, extra:report);
    
  • NASL familyCISCO
    NASL idCISCO-SA-20190123-RV-INJECT.NASL
    descriptionAccording to its self-reported version, this Cisco Small Business RV Series router is affected by multiple vulnerabilities: - A vulnerability in the web-based management interface of Cisco Small Business RV320 and RV325 Dual Gigabit WAN VPN Routers could allow an authenticated, remote attacker with administrative privileges on an affected device to execute arbitrary commands.The vulnerability is due to improper validation of user-supplied input. An attacker could exploit this vulnerability by sending malicious HTTP POST requests to the web-based management interface of an affected device. A successful exploit could allow the attacker to execute arbitrary commands on the underlying Linux shell as root. (CVE-2019-1652) - A vulnerability in the web-based management interface of Cisco Small Business RV320 and RV325 Dual Gigabit WAN VPN Routers could allow an unauthenticated, remote attacker to retrieve sensitive information.The vulnerability is due to improper access controls for URLs. An attacker could exploit this vulnerability by connecting to an affected device via HTTP or HTTPS and requesting specific URLs. A successful exploit could allow the attacker to download the router configuration or detailed diagnostic information. (CVE-2019-1653) Please see the included Cisco BIDs and Cisco Security Advisory for more information
    last seen2020-06-01
    modified2020-06-02
    plugin id124060
    published2019-04-15
    reporterThis script is Copyright (C) 2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/124060
    titleCisco Small Business RV320 and RV325 Routers Multiple Vulnerabilities (cisco-sa-20190123-rv-inject, cisco-sa-20190123-rv-info)

Packetstorm

The Hacker News

idTHN:F4C5F017FE55E40DF427E75D001F7D91
last seen2019-01-28
modified2019-01-28
published2019-01-28
reporterThe Hacker News
sourcehttps://thehackernews.com/2019/01/hacking-cisco-routers.html
titleNew Exploit Threatens Over 9,000 Hackable Cisco RV320/RV325 Routers Worldwide