Debian DSA-2891-1 : mediawiki, mediawiki-extensions Multiple Vulnerabilities - Nessus
High Plugin ID: 73256This page contains detailed information about the Debian DSA-2891-1 : mediawiki, mediawiki-extensions Multiple Vulnerabilities Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.
Plugin Overview
ID: 73256
Name: Debian DSA-2891-1 : mediawiki, mediawiki-extensions Multiple Vulnerabilities
Filename: debian_DSA-2891.nasl
Vulnerability Published: 2014-03-30
This Plugin Published: 2014-03-31
Last Modification Time: 2021-01-11
Plugin Version: 1.16
Plugin Type: local
Plugin Family: Debian Local Security Checks
Dependencies:
ssh_get_info.nasl
Required KB Items [?]: Host/Debian/dpkg-l, Host/Debian/release, Host/local_checks_enabled
Vulnerability Information
Severity: High
Vulnerability Published: 2014-03-30
Patch Published: 2014-03-30
CVE [?]: CVE-2013-2031, CVE-2013-2032, CVE-2013-4567, CVE-2013-4568, CVE-2013-4572, CVE-2013-6452, CVE-2013-6453, CVE-2013-6454, CVE-2013-6472, CVE-2014-1610, CVE-2014-2665
CPE [?]: cpe:/o:debian:debian_linux:7.0, p-cpe:/a:debian:debian_linux:mediawiki, p-cpe:/a:debian:debian_linux:mediawiki-extensions
Synopsis
The remote Debian host is missing a security-related update.
Description
The remote Debian host is missing a security update. It is, therefore, affected by multiple vulnerabilities in MediaWiki :
- A cross-site scripting (XSS) vulnerability exists due to a failure to validate input before returning it to the user. An unauthenticated, remote attacker can exploit this, via specially crafted SVG files, to execute arbitrary script code in the user's browser session. (CVE-2013-2031)
- A flaw exists in the password blocking mechanism due to two different tools being used to block password change requests, these being Special:PasswordReset and Special:ChangePassword, either of which may be bypassed by the method the other prevents. A remote attacker can exploit this issue to change passwords. (CVE-2013-2032)
- Multiple flaws exist in Sanitizer::checkCss due to the improper sanitization of user-supplied input. An unauthenticated, remote attacker can exploit these to bypass the blacklist. (CVE-2013-4567, CVE-2013-4568)
- A flaw exists due to multiple users being granted the same session ID within HTTP headers. A remote attacker can exploit this to authenticate as another random user. (CVE-2013-4572)
- A cross-site scripting (XSS) vulnerability exists in the /includes/libs/XmlTypeCheck.php script due to improper validation of user-supplied input. An unauthenticated, remote attacker can exploit this, via a specially crafted XSL file, to execute arbitrary script code in the user's browser session. (CVE-2013-6452)
- A flaw exists in the /includes/upload/UploadBase.php script due to a failure to apply SVG sanitization when XML files are read as invalid. An unauthenticated, remote attacker can exploit this to upload non-sanitized XML files, resulting in an unspecified impact. (CVE-2013-6453)
- A stored cross-site (XSS) scripting vulnerability exists in the /includes/Sanitizer.php script due to a failure to properly validate the '-o-link' attribute before returning it to users. An unauthenticated, remote attacker can exploit this, via a specially crafted request, to execute arbitrary script code in the user's browser session. (CVE-2013-6454)
- A flaw exists in the log API within the /includes/api/ApiQueryLogEvents.php script that allows an unauthenticated, remote attacker to disclose potentially sensitive information regarding deleted pages. (CVE-2013-6472)
- Multiple flaws exist in the PdfHandler_body.php, DjVu.php, Bitmap.php, and ImageHandler.php scripts when DjVu or PDF file upload support is enabled due to improper sanitization of user-supplied input. An authenticated, remote attacker can exploit these, via the use of shell metacharacters, to execute execute arbitrary shell commands. (CVE-2014-1610)
- A cross-site request forgery (XSRF) vulnerability exists in the includes/specials/SpecialChangePassword.php script due to a failure to properly handle a correctly authenticated but unintended login attempt. An unauthenticated, remote attacker, by convincing a user to follow a specially crafted link, can exploit this to reset the user's password. (CVE-2014-2665)
Solution
Upgrade the mediawiki packages. For the stable distribution (wheezy), these issues have been fixed in version 1:1.19.14+dfsg-0+deb7u1 of the mediawiki package and version 3.5~deb7u1 of the mediawiki-extensions package.
Public Exploits
Target Network Port(s): N/A
Target Asset(s): N/A
Exploit Available: True (Metasploit Framework, Exploit-DB, Core Impact, D2 Elliot)
Exploit Ease: Exploits are available
Here's the list of publicly known exploits and PoCs for verifying the Debian DSA-2891-1 : mediawiki, mediawiki-extensions Multiple Vulnerabilities vulnerability:
- Metasploit: exploit/multi/http/mediawiki_thumb
[MediaWiki Thumb.php Remote Command Execution] - Exploit-DB: exploits/multiple/remote/31767.rb
[EDB-31767: MediaWiki - 'Thumb.php' Remote Command Execution (Metasploit)] - Exploit-DB: exploits/multiple/webapps/31329.txt
[EDB-31329: MediaWiki 1.22.1 PdfHandler - Remote Code Execution] - D2 Elliot: mediawiki_thumb.php_page_parameter_remote_shell_command_injection.html
[MediaWiki thumb.php page Parameter Remote Shell Command Injection]
Before running any exploit against any system, make sure you are authorized by the owner of the target system(s) to perform such activity. In any other case, this would be considered as an illegal activity.
WARNING: Beware of using unverified exploits from sources such as GitHub or Exploit-DB. These exploits and PoCs could contain malware. For more information, see how to use exploits safely.
Risk Information
CVSS V2 Vector [?]: AV:N/AC:L/Au:N/C:P/I:P/A:P/E:F/RL:OF/RC:C
CVSS Base Score: | 7.5 (High) |
Impact Subscore: | 6.4 |
Exploitability Subscore: | 10.0 |
CVSS Temporal Score: | 6.2 (Medium) |
CVSS Environmental Score: | NA (None) |
Modified Impact Subscore: | NA |
Overall CVSS Score: | 6.2 (Medium) |
Go back to menu.
Plugin Source
This is the debian_DSA-2891.nasl nessus plugin source code. This script is Copyright (C) 2014-2021 Tenable Network Security, Inc.
#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#
# The package checks in this plugin were
# extracted from Debian Security Advisory DSA-2891
#
include('deprecated_nasl_level.inc');
include('compat.inc');
if (description)
{
script_id(73256);
script_version("1.16");
script_set_attribute(attribute:"plugin_modification_date", value:"2021/01/11");
script_cve_id(
"CVE-2013-2031",
"CVE-2013-2032",
"CVE-2013-4567",
"CVE-2013-4568",
"CVE-2013-4572",
"CVE-2013-6452",
"CVE-2013-6453",
"CVE-2013-6454",
"CVE-2013-6472",
"CVE-2014-1610",
"CVE-2014-2665"
);
script_bugtraq_id(
59594,
59595,
63757,
63760,
63761,
65003,
65223,
66600
);
script_xref(name:"DSA", value:"2891");
script_name(english:"Debian DSA-2891-1 : mediawiki, mediawiki-extensions Multiple Vulnerabilities");
script_summary(english:"Checks the dpkg output for the updated packages.");
script_set_attribute(attribute:"synopsis", value:
"The remote Debian host is missing a security-related update.");
script_set_attribute(attribute:"description", value:
"The remote Debian host is missing a security update. It is, therefore,
affected by multiple vulnerabilities in MediaWiki :
- A cross-site scripting (XSS) vulnerability exists due to
a failure to validate input before returning it to the
user. An unauthenticated, remote attacker can exploit
this, via specially crafted SVG files, to execute
arbitrary script code in the user's browser session.
(CVE-2013-2031)
- A flaw exists in the password blocking mechanism due to
two different tools being used to block password change
requests, these being Special:PasswordReset and
Special:ChangePassword, either of which may be bypassed
by the method the other prevents. A remote attacker can
exploit this issue to change passwords. (CVE-2013-2032)
- Multiple flaws exist in Sanitizer::checkCss due to the
improper sanitization of user-supplied input. An
unauthenticated, remote attacker can exploit these to
bypass the blacklist. (CVE-2013-4567, CVE-2013-4568)
- A flaw exists due to multiple users being granted the
same session ID within HTTP headers. A remote attacker
can exploit this to authenticate as another random
user. (CVE-2013-4572)
- A cross-site scripting (XSS) vulnerability exists in the
/includes/libs/XmlTypeCheck.php script due to improper
validation of user-supplied input. An unauthenticated,
remote attacker can exploit this, via a specially
crafted XSL file, to execute arbitrary script code in
the user's browser session. (CVE-2013-6452)
- A flaw exists in the /includes/upload/UploadBase.php
script due to a failure to apply SVG sanitization when
XML files are read as invalid. An unauthenticated,
remote attacker can exploit this to upload non-sanitized
XML files, resulting in an unspecified impact.
(CVE-2013-6453)
- A stored cross-site (XSS) scripting vulnerability exists
in the /includes/Sanitizer.php script due to a failure
to properly validate the '-o-link' attribute before
returning it to users. An unauthenticated, remote
attacker can exploit this, via a specially crafted
request, to execute arbitrary script code in the user's
browser session. (CVE-2013-6454)
- A flaw exists in the log API within the
/includes/api/ApiQueryLogEvents.php script that allows
an unauthenticated, remote attacker to disclose
potentially sensitive information regarding deleted
pages. (CVE-2013-6472)
- Multiple flaws exist in the PdfHandler_body.php,
DjVu.php, Bitmap.php, and ImageHandler.php scripts when
DjVu or PDF file upload support is enabled due to
improper sanitization of user-supplied input. An
authenticated, remote attacker can exploit these, via
the use of shell metacharacters, to execute execute
arbitrary shell commands. (CVE-2014-1610)
- A cross-site request forgery (XSRF) vulnerability exists
in the includes/specials/SpecialChangePassword.php
script due to a failure to properly handle a correctly
authenticated but unintended login attempt. An
unauthenticated, remote attacker, by convincing a user
to follow a specially crafted link, can exploit this to
reset the user's password. (CVE-2014-2665)");
script_set_attribute(attribute:"see_also", value:"http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=729629");
script_set_attribute(attribute:"see_also", value:"http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=706601");
script_set_attribute(attribute:"see_also", value:"http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=742857");
script_set_attribute(attribute:"see_also", value:"http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=742857");
script_set_attribute(attribute:"see_also", value:"https://security-tracker.debian.org/tracker/CVE-2013-2031");
script_set_attribute(attribute:"see_also", value:"https://security-tracker.debian.org/tracker/CVE-2013-2032");
script_set_attribute(attribute:"see_also", value:"https://security-tracker.debian.org/tracker/CVE-2013-4567");
script_set_attribute(attribute:"see_also", value:"https://security-tracker.debian.org/tracker/CVE-2013-4568");
script_set_attribute(attribute:"see_also", value:"https://security-tracker.debian.org/tracker/CVE-2013-4572");
script_set_attribute(attribute:"see_also", value:"https://security-tracker.debian.org/tracker/CVE-2013-6452");
script_set_attribute(attribute:"see_also", value:"https://security-tracker.debian.org/tracker/CVE-2013-6453");
script_set_attribute(attribute:"see_also", value:"https://security-tracker.debian.org/tracker/CVE-2013-6454");
script_set_attribute(attribute:"see_also", value:"https://security-tracker.debian.org/tracker/CVE-2013-6472");
script_set_attribute(attribute:"see_also", value:"https://security-tracker.debian.org/tracker/CVE-2014-1610");
script_set_attribute(attribute:"see_also", value:"https://security-tracker.debian.org/tracker/CVE-2014-2665");
script_set_attribute(attribute:"see_also", value:"https://packages.debian.org/source/wheezy/mediawiki");
script_set_attribute(attribute:"see_also", value:"https://packages.debian.org/source/wheezy/mediawiki-extensions");
script_set_attribute(attribute:"see_also", value:"http://www.debian.org/security/2014/dsa-2891");
script_set_attribute(attribute:"solution", value:
"Upgrade the mediawiki packages. For the stable distribution (wheezy),
these issues have been fixed in version 1:1.19.14+dfsg-0+deb7u1 of the
mediawiki package and version 3.5~deb7u1 of the mediawiki-extensions
package.");
script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
script_set_attribute(attribute:"exploit_available", value:"true");
script_set_attribute(attribute:"exploit_framework_core", value:"true");
script_set_attribute(attribute:"d2_elliot_name", value:"MediaWiki thumb.php page Parameter Remote Shell Command Injection");
script_set_attribute(attribute:"exploit_framework_d2_elliot", value:"true");
script_set_attribute(attribute:"metasploit_name", value:'MediaWiki Thumb.php Remote Command Execution');
script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
script_set_attribute(attribute:"vuln_publication_date", value:"2014/03/30");
script_set_attribute(attribute:"patch_publication_date", value:"2014/03/30");
script_set_attribute(attribute:"plugin_publication_date", value:"2014/03/31");
script_set_attribute(attribute:"plugin_type", value:"local");
script_set_attribute(attribute:"cpe", value:"p-cpe:/a:debian:debian_linux:mediawiki");
script_set_attribute(attribute:"cpe", value:"p-cpe:/a:debian:debian_linux:mediawiki-extensions");
script_set_attribute(attribute:"cpe", value:"cpe:/o:debian:debian_linux:7.0");
script_end_attributes();
script_category(ACT_GATHER_INFO);
script_family(english:"Debian Local Security Checks");
script_copyright(english:"This script is Copyright (C) 2014-2021 Tenable Network Security, Inc.");
script_dependencies("ssh_get_info.nasl");
script_require_keys("Host/local_checks_enabled", "Host/Debian/release", "Host/Debian/dpkg-l");
exit(0);
}
include("audit.inc");
include("debian_package.inc");
include("misc_func.inc");
if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
oslevel = get_kb_item("Host/Debian/release");
if (empty_or_null(oslevel)) audit(AUDIT_OS_NOT, "Debian");
if (oslevel !~ "^7\.") audit(AUDIT_OS_NOT, "Debian 7", "Debian " + oslevel);
if (!get_kb_item("Host/Debian/dpkg-l")) audit(AUDIT_PACKAGE_LIST_MISSING);
flag = 0;
if (deb_check(release:"7.0", prefix:"mediawiki", reference:"1:1.19.14+dfsg-0+deb7u1")) flag++;
if (deb_check(release:"7.0", prefix:"mediawiki-extensions", reference:"3.5~deb7u1")) flag++;
if (deb_check(release:"7.0", prefix:"mediawiki-extensions-base", reference:"3.5~deb7u1")) flag++;
if (deb_check(release:"7.0", prefix:"mediawiki-extensions-collection", reference:"3.5~deb7u1")) flag++;
if (deb_check(release:"7.0", prefix:"mediawiki-extensions-geshi", reference:"3.5~deb7u1")) flag++;
if (deb_check(release:"7.0", prefix:"mediawiki-extensions-graphviz", reference:"3.5~deb7u1")) flag++;
if (deb_check(release:"7.0", prefix:"mediawiki-extensions-ldapauth", reference:"3.5~deb7u1")) flag++;
if (deb_check(release:"7.0", prefix:"mediawiki-extensions-openid", reference:"3.5~deb7u1")) flag++;
if (flag)
{
security_report_v4(
port : 0,
severity : SECURITY_HOLE,
xss : TRUE,
xsrf : TRUE,
extra : deb_report_get()
);
}
else audit(AUDIT_HOST_NOT, "affected");
The latest version of this script can be found in these locations depending on your platform:
- Linux / Unix:
/opt/nessus/lib/nessus/plugins/debian_DSA-2891.nasl
- Windows:
C:\ProgramData\Tenable\Nessus\nessus\plugins\debian_DSA-2891.nasl
- Mac OS X:
/Library/Nessus/run/lib/nessus/plugins/debian_DSA-2891.nasl
Go back to menu.
How to Run
Here is how to run the Debian DSA-2891-1 : mediawiki, mediawiki-extensions Multiple Vulnerabilities as a standalone plugin via the Nessus web user interface (https://localhost:8834/):
- Click to start a New Scan.
- Select Advanced Scan.
- Navigate to the Plugins tab.
- On the top right corner click to Disable All plugins.
- On the left side table select Debian Local Security Checks plugin family.
- On the right side table select Debian DSA-2891-1 : mediawiki, mediawiki-extensions Multiple Vulnerabilities plugin ID 73256.
- Specify the target on the Settings tab and click to Save the scan.
- Run the scan.
Here are a few examples of how to run the plugin in the command line. Note that the examples below demonstrate the usage on the Linux / Unix platform.
Basic usage:
/opt/nessus/bin/nasl debian_DSA-2891.nasl -t <IP/HOST>
Run the plugin with audit trail message on the console:
/opt/nessus/bin/nasl -a debian_DSA-2891.nasl -t <IP/HOST>
Run the plugin with trace script execution written to the console (useful for debugging):
/opt/nessus/bin/nasl -T - debian_DSA-2891.nasl -t <IP/HOST>
Run the plugin with using a state file for the target and updating it (useful for running multiple plugins on the target):
/opt/nessus/bin/nasl -K /tmp/state debian_DSA-2891.nasl -t <IP/HOST>
Go back to menu.
References
BID | SecurityFocus Bugtraq ID: DSA | Debian Security Advisory: See also:
- https://www.tenable.com/plugins/nessus/73256
- https://packages.debian.org/source/wheezy/mediawiki
- https://packages.debian.org/source/wheezy/mediawiki-extensions
- https://security-tracker.debian.org/tracker/CVE-2013-2031
- https://security-tracker.debian.org/tracker/CVE-2013-2032
- https://security-tracker.debian.org/tracker/CVE-2013-4567
- https://security-tracker.debian.org/tracker/CVE-2013-4568
- https://security-tracker.debian.org/tracker/CVE-2013-4572
- https://security-tracker.debian.org/tracker/CVE-2013-6452
- https://security-tracker.debian.org/tracker/CVE-2013-6453
- https://security-tracker.debian.org/tracker/CVE-2013-6454
- https://security-tracker.debian.org/tracker/CVE-2013-6472
- https://security-tracker.debian.org/tracker/CVE-2014-1610
- https://security-tracker.debian.org/tracker/CVE-2014-2665
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=706601
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=729629
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=742857
- http://www.debian.org/security/2014/dsa-2891
- https://vulners.com/nessus/DEBIAN_DSA-2891.NASL
- 72376 - Fedora 20 : mediawiki-1.21.5-1.fc20 (2014-1745)
- 72379 - Fedora 19 : mediawiki-1.21.5-1.fc19 (2014-1802)
- 81227 - GLSA-201502-04 : MediaWiki: Multiple vulnerabilities
- 73004 - Mandriva Linux Security Advisory : mediawiki (MDVSA-2014:057)
- 72215 - MediaWiki < 1.19.11 / 1.21.5 / 1.22.2 Multiple Remote Code Execution Vulnerabilities
- 72618 - MediaWiki thumb.php 'w' Parameter Remote Shell Command Injection
- 79907 - Fedora 19 : mediawiki-1.23.7-1.fc19 (2014-16020)
- 80289 - Fedora 20 : mediawiki-1.23.8-1.fc20 (2014-17228)
- 80293 - Fedora 19 : mediawiki-1.23.8-1.fc19 (2014-17264)
- 74412 - Fedora 19 : mediawiki-1.21.10-1.fc19 (2014-6962)
- 76375 - Fedora 20 : mediawiki-1.21.11-1.fc20 (2014-7779)
- 76376 - Fedora 19 : mediawiki-1.21.11-1.fc19 (2014-7805)
Version
This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file debian_DSA-2891.nasl version 1.16. For more plugins, visit the Nessus Plugin Library.
Go back to menu.