Vulnerabilities > CVE-2008-4402 - Buffer Errors vulnerability in Trend Micro Officescan 8.0

047910
CVSS 10.0 - CRITICAL
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
COMPLETE
Integrity impact
COMPLETE
Availability impact
COMPLETE
network
low complexity
trend-micro
CWE-119
critical
nessus

Summary

Multiple buffer overflows in CGI modules in the server in Trend Micro OfficeScan 8.0 SP1 before build 2439 and 8.0 SP1 Patch 1 before build 3087 allow remote attackers to execute arbitrary code via unspecified vectors.

Vulnerable Configurations

Part Description Count
Application
Trend_Micro
2

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Overflow Buffers
    Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
  • Client-side Injection-induced Buffer Overflow
    This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
  • Filter Failure through Buffer Overflow
    In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
  • MIME Conversion
    An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.

Nessus

NASL familyWindows
NASL idTRENDMICRO_OFFICESCAN_MULTIPLE_VULNS.NASL
descriptionThe remote host is either running Worry-Free Business Security or Trend Micro OfficeScan/Trend Micro OfficeScan client. The installed version is affected by multiple vulnerabilities : - If Trend Micro OfficeScan client
last seen2020-06-01
modified2020-06-02
plugin id34363
published2008-10-08
reporterThis script is Copyright (C) 2008-2018 Tenable Network Security, Inc.
sourcehttps://www.tenable.com/plugins/nessus/34363
titleTrend Micro OfficeScan Multiple CGI Module Vulnerabilities
code
#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");


if (description)
{
  script_id(34363);
  script_version("1.22");
  script_cvs_date("Date: 2018/11/15 20:50:29");

  script_cve_id("CVE-2008-2439", "CVE-2008-4402", "CVE-2008-4403");
  script_bugtraq_id(31531);
  script_xref(name:"Secunia", value:"32097");
  script_xref(name:"Secunia", value:"31343");

  script_name(english:"Trend Micro OfficeScan Multiple CGI Module Vulnerabilities");
  script_summary(english:"Checks for vulnerable versions of Trend Micro products");

  script_set_attribute(attribute:"synopsis", value:
"The remote host contains an application that is affected by multiple
vulnerabilities.");
  script_set_attribute(attribute:"description", value:
"The remote host is either running Worry-Free Business Security or
Trend Micro OfficeScan/Trend Micro OfficeScan client. The installed
version is affected by multiple vulnerabilities :

  - If Trend Micro OfficeScan client 'Tmlisten.exe' is
    configured to receive updates from other clients, it
    may be possible to launch a directory traversal attack
    against the remote host, and read arbitrary files.

  - A vulnerability in Trend Micro OfficeScan server CGI
    modules could be exploited to trigger a buffer overflow
    issue and execute arbitrary code on the remote system
    with web server privileges.

  - A NULL pointer dereference issue could be exploited to
    trigger a denial of service condition on the remote
    system.");
  script_set_attribute(attribute:"see_also", value:"https://secuniaresearch.flexerasoftware.com/secunia_research/2008-39/");
   # http://www.trendmicro.com/ftp/documentation/readme/OSCE_7.3_Win_EN_CriticalPatch_B1372_Readme.txt
  script_set_attribute(
    attribute:"see_also",
    value:"http://www.nessus.org/u?14a47516"
  );
   # http://www.trendmicro.com/ftp/documentation/readme/OSCE_8.0_SP1_Win_EN_CriticalPatch_B2439_Readme.txt
  script_set_attribute(
    attribute:"see_also",
    value:"http://www.nessus.org/u?b5493c8c"
  );
   # http://www.trendmicro.com/ftp/documentation/readme/OSCE8.0_SP1_Patch1_CriticalPatch_3087_Readme.txt
  script_set_attribute(
    attribute:"see_also",
    value:"http://www.nessus.org/u?c957bae3"
  );
   # http://www.trendmicro.com/ftp/documentation/readme/Readme_WFBS5.0_EN_CriticalPatch1414.txt
  script_set_attribute(
    attribute:"see_also",
    value:"http://www.nessus.org/u?cabe4087"
  );
  script_set_attribute(attribute:"solution", value:
"Upgrade to :

 - Trend Micro OfficeScan 7.3 Build 1372.
    - Trend Micro OfficeScan 8.0 Build 2439/3087
    depending on the current OfficeScan patch level.
    - Worry-Free Business Security 5.0 Build 1414.");
  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:U/RL:OF/RC:C");
  script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"false");
  script_cwe_id(22, 119, 399);

  script_set_attribute(attribute:"patch_publication_date", value:"2008/09/30");
  script_set_attribute(attribute:"plugin_publication_date", value:"2008/10/08");

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

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

  script_copyright(english:"This script is Copyright (C) 2008-2018 Tenable Network Security, Inc.");
  script_dependencies("smb_hotfixes.nasl");
  script_require_ports(139, 445);

  exit(0);
}

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

if (!get_kb_item("SMB/Registry/Enumerated")) exit(0);

# Connect to the appropriate share.

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 registry.
hklm = RegConnectRegistry(hkey:HKEY_LOCAL_MACHINE);
if (isnull(hklm))
{
  NetUseDel();
  exit(0);
}

# Figure out the Software version

path = NULL;
server_version = NULL;
SP_version = NULL;

key = "SOFTWARE\TrendMicro\OfficeScan\service\Information";
key_h = RegOpenKey(handle:hklm, key:key, mode:MAXIMUM_ALLOWED);

if (!isnull(key_h))
{
  # TrendMicro OfficeScan Server install...

  value =  RegQueryValue(handle:key_h, item:"Local_Path");
  if (!isnull(value)) path = value[1];

  value =  RegQueryValue(handle:key_h, item:"Server_Version");
  if (!isnull(value)) server_version = value[1];

  value =  RegQueryValue(handle:key_h, item:"ServicePack_Build");
  if (!isnull(value)) SP_version = value[1];

  RegCloseKey(handle:key_h);
}


# Check if Worry-Free Business Server is installed.

wfbs = 0;
key = "SOFTWARE\TrendMicro\WFBS";
key_h = RegOpenKey(handle:hklm, key:key, mode:MAXIMUM_ALLOWED);
if (!isnull(key_h))
{
  wfbs = 1;
  RegCloseKey(handle:key_h);
}

if(isnull(path))
 {
   # If we reach here, we are probably looking at a client only
   # install

   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:hklm);

if (isnull(path))
{
  NetUseDel();
  exit(0);
}
NetUseDel(close:FALSE);


# Grab the file version of tmlisten.exe
share = ereg_replace(pattern:"^([A-Za-z]):.*", replace:"\1$", string:path);
if("PCCSRV" >< path)
exe   = ereg_replace(pattern:"^[A-Za-z]:(.*)", replace:"\1Pccnt\Common\Tmlisten.exe", string:path);
else
{
 exe   = ereg_replace(pattern:"^[A-Za-z]:(.*)", replace:"\1Tmlisten.exe", string:path);
 dll   = ereg_replace(pattern:"^[A-Za-z]:(.*)", replace:"\1NTSvcRes.dll", string:path);
}

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
);

ver = NULL;
if (!isnull(fh))
{
  ver = GetFileVersion(handle:fh);
  CloseFile(handle:fh);
}

ver_dll = NULL;
if ("PCCSRV" >!< path)
{
  # nb : Reporting client only installs based on
  #	 file version of tmlisten.exe could result in FP's.
  #	 Therefore we try to get the service pack info
  #	 from a dll file known to indicate correct SP version
  #	 in use.

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

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

NetUseDel();


# Check the version number.
if (!isnull(ver_dll))
 {
   if(isnull(server_version))
   server_version = string(ver_dll[0],".",ver_dll[1]);

   if(isnull(SP_version))
   SP_version  = string(ver_dll[3]);
 }

if (!isnull(ver))
{
   for (i=0; i < max_index(ver); i++)
    ver[i] = int(ver[i]);

  if ( # OfficeScan 7.3 without patch 1372, Tmlisten.exe file version == 7.3.0.1372
       ( ver[0] ==  7 && ver[1] == 3 && ver[2] == 0 && ver[3] < 1372) 						       ||
       # OfficeScan 8.0 Service Pack 1 without patch 2439, Tmlisten.exe file version == 10.0.0.1222
       ( server_version == "8.0" && SP_version >= 2302 && ver[0] == 10 && ver[1] == 0 && ver[2] == 0 && ver[3] < 1222) ||
	 # OfficeScan 8.0 Service Pack 1 Patch 1 w/o patch 3087, Tmlisten.exe file version == 10.5.0.1040
       ( server_version == "8.0" && SP_version >= 3031 && ver[0] == 10 && ver[1] == 5 && ver[2] == 0 && ver[3] < 1040) ||
	 # WorryFree 5.0 without patch 1414, Tmlisten.exe file version == 10.0.0.1220
       ( wfbs && ver[0] == 10 && ver[1] == 0 && ver[2] == 0 && ver[3] < 1220)
     )
     if (report_verbosity )
      {
	if("PCCSRV" >< path)
	  path = string(path,"Pccnt\\Common");

        report = string(
          "\n",
          "Version ", string(ver[0],".",ver[1],".",ver[2],".",ver[3])," of Tmlisten.exe\n",
	  " is installed under :\n",
          "\n",
          "  ", path,"\n"
        );
      	security_hole(port:port,extra:report);
      }
      else
      	security_hole(port);
}