Trend Micro OfficeScan OfficeScanSetupINI.dll Remote Buffer Overflow - Nessus

High   Plugin ID: 24683

This page contains detailed information about the Trend Micro OfficeScan OfficeScanSetupINI.dll Remote Buffer Overflow Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 24683
Name: Trend Micro OfficeScan OfficeScanSetupINI.dll Remote Buffer Overflow
Filename: trendmicro_ofscan_buffer_overflow.nasl
Vulnerability Published: 2007-02-12
This Plugin Published: 2007-02-21
Last Modification Time: 2018-08-03
Plugin Version: 1.24
Plugin Type: local
Plugin Family: Windows
Dependencies: smb_hotfixes.nasl, trendmicro_installed.nasl
Required KB Items [?]: Antivirus/TrendMicro/installed, Antivirus/TrendMicro/trendmicro_program_version

Vulnerability Information


Severity: High
Vulnerability Published: 2007-02-12
Patch Published: 2007-02-12
CVE [?]: CVE-2007-0325
CPE [?]: cpe:/a:trend_micro:officescan_corporate_edition
Exploited by Malware: True

Synopsis

The remote Windows host is affected by a remote buffer overflow vulnerability.

Description

The remote host is running Trend Micro Antivirus, a commercial anti- virus software package for Windows.

The remote version of the installed antivirus is vulnerable to a remote buffer overflow attack.

The issue exists due a vulnerability in the ActiveX control installed by the OfficeScan server during a web install of the OfficeScan clients. The clients cache this ActiveX control, which can be exploited by a malicious website. The attacker can trigger this issue by enticing a user to click on a malicious link or sending the link in an email and urging the user to click on it. Successful exploitation of this issue might result in arbitrary code execution.

Solution

Apply the security patch released by the vendor.

Public Exploits


Target Network Port(s): 139, 445
Target Asset(s): N/A
Exploit Available: True (Metasploit Framework, Exploit-DB)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the Trend Micro OfficeScan OfficeScanSetupINI.dll Remote Buffer Overflow vulnerability:

  1. Metasploit: exploit/windows/browser/trendmicro_officescan
    [Trend Micro OfficeScan Client ActiveX Control Buffer Overflow]
  2. Exploit-DB: exploits/windows/remote/16535.rb
    [EDB-16535: Trend Micro OfficeScan - Client ActiveX Control Buffer Overflow (Metasploit)]

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 V2 Vector [?]: AV:N/AC:M/Au:N/C:C/I:C/A:C/E:H/RL:OF/RC:C
CVSS Base Score:9.3 (High)
Impact Subscore:10.0
Exploitability Subscore:8.6
CVSS Temporal Score:8.1 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:8.1 (High)

Go back to menu.

Plugin Source


This is the trendmicro_ofscan_buffer_overflow.nasl nessus plugin source code. This script is Copyright (C) 2007-2018 Tenable Network Security, Inc.

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

include("compat.inc");

if (description)
{
  script_id(24683);
  script_version("1.24");
 script_cvs_date("Date: 2018/08/03 11:35:09");
  script_cve_id("CVE-2007-0325");
  script_bugtraq_id(22585);

  script_name(english:"Trend Micro OfficeScan OfficeScanSetupINI.dll Remote Buffer Overflow");
  script_summary(english:"Checks if vulnerable version Trend Micro OfficeScan is installed");

 script_set_attribute(attribute:"synopsis", value:
"The remote Windows host is affected by a remote buffer overflow
vulnerability.");
 script_set_attribute(attribute:"description", value:
"The remote host is running Trend Micro Antivirus, a commercial anti-
virus software package for Windows.

The remote version of the installed antivirus is vulnerable to a
remote buffer overflow attack.

The issue exists due a vulnerability in the ActiveX control installed
by the OfficeScan server during a web install of the OfficeScan
clients. The clients cache this ActiveX control, which can be
exploited by a malicious website. The attacker can trigger this issue
by enticing a user to click on a malicious link or sending the link in
an email and urging the user to click on it. Successful exploitation
of this issue might result in arbitrary code execution.");
  # http://www.trendmicro.com/ftp/documentation/readme/osce_73_win_en_securitypatch_1241_readme.txt
 script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?62e87258");
  # http://www.trendmicro.com/ftp/documentation/readme/osce_70_win_en_securitypatch_1344_readme.txt
 script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?14064dc2" );
  # File Download
 script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?2b2f278b" );
  # File Download
 script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?ad4ca3ae" );
 script_set_attribute(attribute:"solution", value:"Apply the security patch released by the vendor.");
 script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:C/I:C/A:C");
 script_set_cvss_temporal_vector("CVSS2#E:H/RL:OF/RC:C");
 script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
 script_set_attribute(attribute:"exploit_available", value:"true");
 script_set_attribute(attribute:"exploited_by_malware", value:"true");
 script_set_attribute(attribute:"metasploit_name", value:'Trend Micro OfficeScan Client ActiveX Control Buffer Overflow');
 script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
 script_cwe_id(119);

 script_set_attribute(attribute:"vuln_publication_date", value:"2007/02/12");
 script_set_attribute(attribute:"patch_publication_date", value:"2007/02/12");
 script_set_attribute(attribute:"plugin_publication_date", value:"2007/02/21");

 script_set_attribute(attribute:"plugin_type", value:"local");
 script_set_attribute(attribute:"cpe", value:"cpe:/a:trend_micro:officescan_corporate_edition");
 script_end_attributes();

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

  script_copyright(english:"This script is Copyright (C) 2007-2018 Tenable Network Security, Inc.");

  script_dependencies("smb_hotfixes.nasl","trendmicro_installed.nasl");
  script_require_keys("Antivirus/TrendMicro/installed","Antivirus/TrendMicro/trendmicro_program_version");
  script_require_ports(139, 445);

  exit(0);
}

include("smb_func.inc");
include("audit.inc");

if (!get_kb_item("Antivirus/TrendMicro/installed"))
  exit(0);

name    =  kb_smb_name();
port    =  kb_smb_transport();
login   =  kb_smb_login();
pass    =  kb_smb_password();
domain  =  kb_smb_domain();



if(! smb_session_init()) audit(AUDIT_FN_FAIL, 'smb_session_init');
rc = NetUseAdd(login:login, password:pass, domain:domain, share:"IPC$");
if (rc != 1)
{
  NetUseDel();
  exit(0);
}

# Connect to remote hkcr registry.
hkcr = RegConnectRegistry(hkey:HKEY_CLASS_ROOT);
if (isnull(hkcr))
{
  NetUseDel();
  exit(0);
}

# Determine if the control is installed.
clid = "08D75BC1-D2B5-11D1-88FC-0080C859833B";
key = "CLSID\{" + clid +  "}\InprocServer32";
key_h = RegOpenKey(handle:hkcr, key:key, mode:MAXIMUM_ALLOWED);
path = NULL;
if (!isnull(key_h))
{
  value = RegQueryValue(handle:key_h, item:NULL);
  if (!isnull(value)) path = value[1];

  RegCloseKey(handle:key_h);
}
RegCloseKey(handle:hkcr);

if(isnull(path) || "OfficeScanSetup.dll" >!< path )
{
  NetUseDel();
  exit(0);
}

# Connect to remote hklm registry.
hklm = RegConnectRegistry(hkey:HKEY_LOCAL_MACHINE);
if (isnull(hklm))
{
  NetUseDel();
  exit(0);
}

exe = NULL;
path = NULL;

# Determine where it's installed.

key = "SOFTWARE\TrendMicro\PC-cillinNTCorp\CurrentVersion";
key_h = RegOpenKey(handle:hklm, key:key, mode:MAXIMUM_ALLOWED);
if (!isnull(key_h))
{
 value = RegQueryValue(handle:key_h, item:"Application Path");
 if (!isnull(value))
   path = value[1];

 RegCloseKey(handle:key_h);
}


RegCloseKey(handle:hklm);

if (isnull(path))
{
 NetUseDel();
 exit(0);
}

NetUseDel(close:FALSE);

path1  = path;
share  = ereg_replace(pattern:"^([A-Za-z]):.*", replace:"\1$", string:path);
path   = ereg_replace(pattern:"^[A-Za-z]:(.*)$", replace:"\1", string:path);
exe    = path + "\tmlisten.exe";

# Connect to the appropriate share.

rc = NetUseAdd(login:login, password:pass, domain:domain, share:share);
if (rc != 1)
{
 NetUseDel();
 exit(0);
}

fh = CreateFile(file:exe, desired_access:GENERIC_READ, file_attributes:FILE_ATTRIBUTE_NORMAL, share_mode:FILE_SHARE_READ, create_disposition:OPEN_EXISTING);

v = NULL;
trouble = 0;

if (!isnull(fh))
{
  v = GetFileVersion(handle:fh);
  CloseFile(handle:fh);
}
NetUseDel();

if (
  !isnull(v) &&
  (
    v[0] < 7 ||
    (
      (v[0] == 7 && v[1] == 3 && v[2] == 0 && v[3] < 1241) ||
      (v[0] == 7 && v[1] == 0 && v[2] == 0 && v[3] < 1344)
    )
  )
)
{
 info = string (
		'Version ', v[0], ".", v[1], ".", v[2], ".", v[3],  ' of tmlisten.exe is installed on the remote\n',
		'host under the following path :\n',
		'\n',
		'  ', path1
		);

 report = string(
		"\n",
		info,"\n"
  		);

 security_hole(port:port, extra:report);
}

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

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

Go back to menu.

How to Run


Here is how to run the Trend Micro OfficeScan OfficeScanSetupINI.dll Remote Buffer Overflow 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 Windows plugin family.
  6. On the right side table select Trend Micro OfficeScan OfficeScanSetupINI.dll Remote Buffer Overflow plugin ID 24683.
  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_ofscan_buffer_overflow.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

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

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: CWE | Common Weakness Enumeration:
  • CWE-119 (Weakness) Improper Restriction of Operations within the Bounds of a Memory Buffer
See also: Similar and related Nessus plugins:
  • 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
  • 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
  • 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
  • 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)
  • 55456 - Trend Micro Data Loss Prevention Virtual Appliance Encoded Traversal Arbitrary File Access
  • 139030 - Trend Micro InterScan Web Security Virtual Appliance (IWSVA) Multiple Vulnerabilities (000253095)
  • 104273 - Trend Micro IWSVA 6.5 < 6.5 Build 1737 Multiple Vulnerabilities
  • 99248 - Trend Micro IWSVA 6.5 < 6.5 Build 1746 Multiple Vulnerabilities
  • 24680 - Trend Micro ServerProtect TmRpcSrv.dll RPC Request Multiple Overflows
  • 107224 - Trend Micro Smart Protection Server Session Hijacking Via Log File Disclosure
  • 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_ofscan_buffer_overflow.nasl version 1.24. For more plugins, visit the Nessus Plugin Library.

Go back to menu.