SmarterMail Multiple Vulnerabilities May-11

2011-06-01T00:00:00
ID OPENVAS:1361412562310902432
Type openvas
Reporter Copyright (C) 2011 SecPod
Modified 2017-08-25T00:00:00

Description

This host is running SmarterMail and is prone to multiple vulnerabilities.

                                        
                                            ###############################################################################
# OpenVAS Vulnerability Test
# $Id: secpod_smartermail_multiple_vuln_may11.nasl 7006 2017-08-25 11:51:20Z teissa $
#
# SmarterMail Multiple Vulnerabilities May-11
#
# Authors:
# Antu Sanadi <santu@secpod.com>
#
# Copyright:
# Copyright (c) 2011 SecPod, http://www.secpod.com
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2
# (or any later version), as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
###############################################################################

CPE = 'cpe:/a:smartertools:smartermail';

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.902432");
  script_version("$Revision: 7006 $");
  script_tag(name:"last_modification", value:"$Date: 2017-08-25 13:51:20 +0200 (Fri, 25 Aug 2017) $");
  script_tag(name:"creation_date", value:"2011-06-01 11:16:16 +0200 (Wed, 01 Jun 2011)");
  script_cve_id("CVE-2011-2148", "CVE-2011-2149", "CVE-2011-2150", "CVE-2011-2151",
                "CVE-2011-2152", "CVE-2011-2153", "CVE-2011-2154", "CVE-2011-2155",
                "CVE-2011-2156", "CVE-2011-2157", "CVE-2011-2158", "CVE-2011-2159");
  script_tag(name:"cvss_base", value:"10.0");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:C/I:C/A:C");
  script_name("SmarterMail Multiple Vulnerabilities May-11");

  script_xref(name:"URL", value:"http://www.kb.cert.org/vuls/id/240150");
  script_xref(name:"URL", value:"http://www.kb.cert.org/vuls/id/MORO-8GYQR4");
  script_xref(name:"URL", value:"http://xss.cx/examples/smarterstats-60-oscommandinjection-directorytraversal-xml-sqlinjection.html.html");

  script_category(ACT_ATTACK);
  script_copyright("Copyright (C) 2011 SecPod");
  script_family("Web application abuses");
  script_dependencies("secpod_smartermail_detect.nasl");
  script_require_ports("Services/www", 80, 9998);
  script_require_keys("SmarterMail/installed");

  script_tag(name:"impact", value:"Successful exploitation could allow attackers to conduct cross site scripting,
  command execution and directory traversal attacks.

  Impact Level: Application");
  script_tag(name:"affected", value:"SmarterTools SmarterMail versions 6.0 and prior.");
  script_tag(name:"solution", value:"Upgrade to SmarterTools SmarterMail 8.0 or later,
  For updates refer to http://www.smartertools.com/smartermail/mail-server-software.aspx");
  script_tag(name:"summary", value:"This host is running SmarterMail and is prone to multiple
  vulnerabilities.");
  script_tag(name:"insight", value:"Multiple flaws are present in the application. More detail is available at,

  http://xss.cx/examples/smarterstats-60-oscommandinjection-directorytraversal-xml-sqlinjection.html.html");

  script_tag(name:"qod_type", value:"remote_vul");
  script_tag(name:"solution_type", value:"VendorFix");

  exit(0);
}


include("http_func.inc");
include("http_keepalive.inc");
include("host_details.inc");

if(!smPort = get_app_port(cpe:CPE)) exit(0);

url = "/Login.aspx?shortcutLink=autologin&txtSiteID" +
      "=admin&txtUser=admin&txtPass=admin";

## Construct attack request
sndReq = http_get(item:url, port:smPort);
rcvRes = http_keepalive_send_recv(port:smPort, data:sndReq);

## Check the working exploit
if("txtUser=admin&" >< rcvRes && "txtPass=admin" >< rcvRes){
  report = report_vuln_url(port:smPort, url:url);
  security_message(port:smPort, data:report);
  exit(0);
}

exit(99);