Vulnerabilities > CVE-2008-0457 - Improper Input Validation vulnerability in Symantec Backupexec System Recovery 7.0/7.01

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
symantec
CWE-20
critical
nessus
exploit available

Summary

Unrestricted file upload vulnerability in the FileUpload class running on the Symantec LiveState Apache Tomcat server, as used by Symantec Backup Exec System Recovery Manager 7.0 and 7.0.1, allows remote attackers to upload and execute arbitrary JSP files via unknown vectors.

Vulnerable Configurations

Part Description Count
Application
Symantec
2

Common Weakness Enumeration (CWE)

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.
  • Server Side Include (SSI) Injection
    An attacker can use Server Side Include (SSI) Injection to send code to a web application that then gets executed by the web server. Doing so enables the attacker to achieve similar results to Cross Site Scripting, viz., arbitrary code execution and information disclosure, albeit on a more limited scale, since the SSI directives are nowhere near as powerful as a full-fledged scripting language. Nonetheless, the attacker can conveniently gain access to sensitive files, such as password files, and execute shell commands.
  • Cross Zone Scripting
    An attacker is able to cause a victim to load content into their web-browser that bypasses security zone controls and gain access to increased privileges to execute scripting code or other web objects such as unsigned ActiveX controls or applets. This is a privilege elevation attack targeted at zone-based web-browser security. In a zone-based model, pages belong to one of a set of zones corresponding to the level of privilege assigned to that page. Pages in an untrusted zone would have a lesser level of access to the system and/or be restricted in the types of executable content it was allowed to invoke. In a cross-zone scripting attack, a page that should be assigned to a less privileged zone is granted the privileges of a more trusted zone. This can be accomplished by exploiting bugs in the browser, exploiting incorrect configuration in the zone controls, through a cross-site scripting attack that causes the attackers' content to be treated as coming from a more trusted page, or by leveraging some piece of system functionality that is accessible from both the trusted and less trusted zone. This attack differs from "Restful Privilege Escalation" in that the latter correlates to the inadequate securing of RESTful access methods (such as HTTP DELETE) on the server, while cross-zone scripting attacks the concept of security zones as implemented by a browser.
  • Cross Site Scripting through Log Files
    An attacker may leverage a system weakness where logs are susceptible to log injection to insert scripts into the system's logs. If these logs are later viewed by an administrator through a thin administrative interface and the log data is not properly HTML encoded before being written to the page, the attackers' scripts stored in the log will be executed in the administrative interface with potentially serious consequences. This attack pattern is really a combination of two other attack patterns: log injection and stored cross site scripting.
  • Command Line Execution through SQL Injection
    An attacker uses standard SQL injection methods to inject data into the command line for execution. This could be done directly through misuse of directives such as MSSQL_xp_cmdshell or indirectly through injection of data into the database that would be interpreted as shell commands. Sometime later, an unscrupulous backend application (or could be part of the functionality of the same application) fetches the injected data stored in the database and uses this data as command line arguments without performing proper validation. The malicious data escapes that data plane by spawning new commands to be executed on the host.

Exploit-Db

  • descriptionSymantec Backup Exec System Recovery Manager 7.0 FileUpload Class Unauthorized File Upload Vulnerability. CVE-2008-0457. Remote exploit for windows platform
    idEDB-ID:31072
    last seen2016-02-03
    modified2007-01-05
    published2007-01-05
    reportertiton
    sourcehttps://www.exploit-db.com/download/31072/
    titleSymantec Backup Exec System Recovery Manager 7.0 FileUpload Class Unauthorized File Upload Vulnerability
  • idEDB-ID:5078

Nessus

NASL familyCGI abuses
NASL idSYMANTEC_BACKUP_EXEC_SYSTEM_RECOVERY_MANAGER_MULTIPLE.NASL
descriptionThe remote host appears to be running Symantec Backup Exec System Recovery Manager, a backup manager solution. The version of Recovery Manager on the remote host includes the Tomcat Servlet
last seen2020-06-01
modified2020-06-02
plugin id30211
published2008-02-09
reporterThis script is Copyright (C) 2008-2018 Tenable Network Security, Inc.
sourcehttps://www.tenable.com/plugins/nessus/30211
titleSymantec Backup Exec System Recovery Manager FileUpload Class Unauthorized File Upload
code
#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description) {
  script_id(30211);
  script_version("1.15");

  script_cve_id("CVE-2008-0457");
  script_bugtraq_id(27487);

  script_name(english:"Symantec Backup Exec System Recovery Manager FileUpload Class Unauthorized File Upload");
  script_summary(english:"Checks for reportsfile parameter directory traversal vulnerability in Symantec BESRM 7");
 
 script_set_attribute(attribute:"synopsis", value:
"The remote web server contains a Tomcat servlet that fails to validate
user input." );
 script_set_attribute(attribute:"description", value:
"The remote host appears to be running Symantec Backup Exec System
Recovery Manager, a backup manager solution. 

The version of Recovery Manager on the remote host includes the Tomcat
Servlet 'FileUpload' that fails to validate the user input.  An
unauthenticated attacker may be able to exploit this issue to upload a
jsp script to execute code on the remote host with SYSTEM privileges." );
 script_set_attribute(attribute:"see_also", value:"http://www.symantec.com/avcenter/security/Content/2008.02.04.html" );
 script_set_attribute(attribute:"solution", value:
"Upgrade to version 7.0.3 or later." );
 script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C");
 script_set_cvss_temporal_vector("CVSS2#E:POC/RL:OF/RC:C");
 script_set_attribute(attribute:"exploitability_ease", value:"No exploit is required");
 script_set_attribute(attribute:"exploit_available", value:"false");
 script_cwe_id(20);
 script_set_attribute(attribute:"plugin_publication_date", value: "2008/02/09");
 script_set_attribute(attribute:"patch_publication_date", value: "2008/02/04");
 script_cvs_date("Date: 2018/08/01 17:36:12");
 script_set_attribute(attribute:"plugin_type", value:"remote");
 script_set_attribute(attribute:"cpe",value:"cpe:/a:symantec:backupexec_system_recovery");
 script_end_attributes();

  script_category(ACT_ATTACK);
  script_family(english:"CGI abuses");

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

  script_dependencies("http_version.nasl");
  script_require_ports("Services/www", 8080, 8443);

  exit(0);
}

include("global_settings.inc");
include("misc_func.inc");
include("http.inc");


port = get_http_port(default:8080);

banner = get_http_banner(port:port);
if ("Apache-Coyote" >!< banner) exit(0, "The web server on port "+port+" is not Apache-Coyote");


w = http_send_recv3(method:"GET", port:port, item:"/axis/FileUpload");
if (isnull(w)) exit(1, "The web server on port "+port+" did not answer");
res = strcat(w[0], w[1], '\r\n', w[2]);
if ("HTTP method GET is not supported by this URL" >!< res) exit(0);

# path does not exist -> exception
# fixed version exit due to ".."
fname = string("nessus-", unixtime() ,".jsp");
path  = string("nessus-", unixtime());


bound = "nessus";
boundary = string("--", bound);

postdata = string(
      boundary, "\r\n", 
      'Content-Disposition: form-data; name="path"\r\n',
      "\r\n",
      path, "\r\n",

      boundary, "\r\n", 
      'Content-Disposition: form-data; name="log_file"; filename="', fname, '"', "\r\n",
      "Content-Type: application/octet-stream\r\n",
      "\r\n",
      "NESSUS\r\n",

      boundary, "--", "\r\n"
    );

w = http_send_recv3(method:"POST", port: port, item: "/axis/FileUpload",
  content_type: "multipart/form-data; boundary="+bound,
  data: postdata);
if (isnull(w)) exit(1, "The web server on port "+port+" did not answer");
res = strcat(w[0], w[1], '\r\n', w[2]);

msg = string(path, "\\", fname, " (The system cannot find the path specified");
if (msg >< res)
  security_hole(port);

Seebug

  • bulletinFamilyexploit
    descriptionBUGTRAQ ID: 27487 CVE(CAN) ID: CVE-2008-0457 Symantec Backup Exec是一款全面的数据备份解决方案。 Symantec Backup Exec系统还原管理器的运行在Symantec LiveState Apache Tomcat服务器(TCP 8080端口)上的FileUpload类存在安全漏洞。如果远程攻击者向该服务器提交了恶意的HTTP POST请求的话,就可以向公开可访问的web目录上传JSP脚本,导致执行任意代码。 Symantec Backup Exec System Recovery Manager 7.0.1 Symantec Backup Exec System Recovery Manager 7.0 Symantec -------- 目前厂商已经发布了升级补丁以修复这个安全问题,请到厂商的主页下载: <a href=https://fileconnect.symantec.com/ target=_blank>https://fileconnect.symantec.com/</a>
    idSSV:2891
    last seen2017-11-19
    modified2008-02-14
    published2008-02-14
    reporterRoot
    titleSymantec Backup Exec系统还原管理器FileUpload类非授权文件上传漏洞
  • bulletinFamilyexploit
    descriptionBUGTRAQ ID: 29350 CVE(CAN) ID: CVE-2008-0457 Symantec Backup Exec是一款全面的数据备份解决方案。 Symantec Backup Exec处理用户请求存在输入验证漏洞,网络攻击者可以利用此漏洞遍历目录读取特权文件或非授权访问目标系统。 Symantec Backup Exec System Recovery Manager 8.x Symantec Backup Exec System Recovery Manager 7.x Symantec -------- 目前厂商已经发布了升级补丁以修复这个安全问题,请到厂商的主页下载: <a href=https://fileconnect.symantec.com/ target=_blank>https://fileconnect.symantec.com/</a>
    idSSV:3347
    last seen2017-11-19
    modified2008-05-29
    published2008-05-29
    reporterRoot
    titleSymantec Backup Exec系统还原管理器目录遍历漏洞