MediaWiki < 1.19.11 / 1.21.5 / 1.22.2 Multiple Remote Code Execution Vulnerabilities - Nessus
Medium Plugin ID: 72215This page contains detailed information about the MediaWiki < 1.19.11 / 1.21.5 / 1.22.2 Multiple Remote Code Execution Vulnerabilities Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.
Plugin Overview
ID: 72215
Name: MediaWiki < 1.19.11 / 1.21.5 / 1.22.2 Multiple Remote Code Execution Vulnerabilities
Filename: mediawiki_1_19_11.nasl
Vulnerability Published: 2014-01-28
This Plugin Published: 2014-01-30
Last Modification Time: 2022-04-11
Plugin Version: 1.14
Plugin Type: remote
Plugin Family: CGI abuses
Dependencies:
mediawiki_detect.nasl
Required KB Items [?]: installed_sw/MediaWiki, Settings/ParanoidReport, www/PHP
Vulnerability Information
Severity: Medium
Vulnerability Published: 2014-01-28
Patch Published: 2014-01-28
CVE [?]: CVE-2014-1610
CPE [?]: cpe:/a:mediawiki:mediawiki
Synopsis
The remote web server contains an application that is affected by multiple remote code execution vulnerabilities.
Description
According to its version number, the instance of MediaWiki running on the remote host is affected by the following remote code execution vulnerabilities :
- A user-input validation error exists during thumbnail generation in the 'thumb.php' script that allows the execution of arbitrary shell commands via a specially crafted DjVu file.
- A user-input validation error exists in the 'pdfhandler_body.php' script used by the PdfHandler extension that allows the execution of arbitrary shell commands via a specially crafted PDF file.
Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version number. Also note that the affected features are not enabled by default.
Solution
Upgrade to MediaWiki version 1.19.11 / 1.21.5 / 1.22.2 or later.
Public Exploits
Target Network Port(s): 80
Target Asset(s): Services/www
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 MediaWiki < 1.19.11 / 1.21.5 / 1.22.2 Multiple Remote Code Execution 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 Score Source [?]: CVE-2014-1610
CVSS V2 Vector: AV:N/AC:M/Au:S/C:P/I:P/A:P/E:F/RL:OF/RC:C
CVSS Base Score: | 6.0 (Medium) |
Impact Subscore: | 6.4 |
Exploitability Subscore: | 6.8 |
CVSS Temporal Score: | 5.0 (Medium) |
CVSS Environmental Score: | NA (None) |
Modified Impact Subscore: | NA |
Overall CVSS Score: | 5.0 (Medium) |
Go back to menu.
Plugin Source
This is the mediawiki_1_19_11.nasl nessus plugin source code. This script is Copyright (C) 2014-2022 and is owned by Tenable, Inc. or an Affiliate thereof.
#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#
include('deprecated_nasl_level.inc');
include('compat.inc');
if (description)
{
script_id(72215);
script_version("1.14");
script_set_attribute(attribute:"plugin_modification_date", value:"2022/04/11");
script_cve_id("CVE-2014-1610");
script_bugtraq_id(65223);
script_name(english:"MediaWiki < 1.19.11 / 1.21.5 / 1.22.2 Multiple Remote Code Execution Vulnerabilities");
script_set_attribute(attribute:"synopsis", value:
"The remote web server contains an application that is affected by
multiple remote code execution vulnerabilities.");
script_set_attribute(attribute:"description", value:
"According to its version number, the instance of MediaWiki running
on the remote host is affected by the following remote code execution
vulnerabilities :
- A user-input validation error exists during thumbnail
generation in the 'thumb.php' script that allows the
execution of arbitrary shell commands via a specially
crafted DjVu file.
- A user-input validation error exists in the
'pdfhandler_body.php' script used by the PdfHandler
extension that allows the execution of arbitrary shell
commands via a specially crafted PDF file.
Note that Nessus has not tested for these issues but has instead
relied only on the application's self-reported version number. Also
note that the affected features are not enabled by default.");
script_set_attribute(attribute:"see_also", value:"https://seclists.org/fulldisclosure/2014/Feb/6");
# https://www.checkpoint.com/threatcloud-central/articles/2014-01-28-tc-researchers-discover.html
script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?f8ca1fc8");
script_set_attribute(attribute:"see_also", value:"https://www.mediawiki.org/wiki/Release_notes/1.19");
script_set_attribute(attribute:"see_also", value:"https://www.mediawiki.org/wiki/Release_notes/1.21");
script_set_attribute(attribute:"see_also", value:"https://www.mediawiki.org/wiki/Release_notes/1.22");
# https://lists.wikimedia.org/pipermail/mediawiki-announce/2014-January/000140.html
script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?92483abd");
script_set_attribute(attribute:"solution", value:
"Upgrade to MediaWiki version 1.19.11 / 1.21.5 / 1.22.2 or later.");
script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:S/C:P/I:P/A:P");
script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
script_set_attribute(attribute:"cvss_score_source", value:"CVE-2014-1610");
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/01/28");
script_set_attribute(attribute:"patch_publication_date", value:"2014/01/28");
script_set_attribute(attribute:"plugin_publication_date", value:"2014/01/30");
script_set_attribute(attribute:"potential_vulnerability", value:"true");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_set_attribute(attribute:"cpe", value:"cpe:/a:mediawiki:mediawiki");
script_set_attribute(attribute:"thorough_tests", value:"true");
script_end_attributes();
script_category(ACT_GATHER_INFO);
script_family(english:"CGI abuses");
script_copyright(english:"This script is Copyright (C) 2014-2022 and is owned by Tenable, Inc. or an Affiliate thereof.");
script_dependencies("mediawiki_detect.nasl");
script_require_keys("Settings/ParanoidReport", "installed_sw/MediaWiki", "www/PHP");
script_require_ports("Services/www", 80);
exit(0);
}
include("audit.inc");
include("global_settings.inc");
include("misc_func.inc");
include("http.inc");
include("install_func.inc");
app = "MediaWiki";
get_install_count(app_name:app, exit_if_zero:TRUE);
port = get_http_port(default:80, php:TRUE);
install = get_single_install(
app_name : app,
port : port,
exit_if_unknown_ver : TRUE
);
version = install['version'];
install_url = build_url(qs:install['path'], port:port);
if (report_paranoia < 2) audit(AUDIT_PARANOID);
# Check Point says the DjVu issue affects 1.8 onwards.
if (
version =~ "^1\.[89]\." ||
version =~ "^1\.1[0-8]\." ||
version =~ "^1\.19\.([0-9]|10)([^0-9]|$)" ||
version =~ "^1\.21\.[0-4]([^0-9]|$)" ||
version =~ "^1\.22\.[01]([^0-9]|$)"
)
{
if (report_verbosity > 0)
{
report =
'\n URL : ' + install_url +
'\n Installed version : ' + version +
'\n Fixed versions : 1.19.11 / 1.21.5 / 1.22.2' +
'\n';
security_warning(port:port, extra:report);
}
else security_warning(port);
}
else audit(AUDIT_WEB_APP_NOT_AFFECTED, app, install_url, version);
The latest version of this script can be found in these locations depending on your platform:
- Linux / Unix:
/opt/nessus/lib/nessus/plugins/mediawiki_1_19_11.nasl
- Windows:
C:\ProgramData\Tenable\Nessus\nessus\plugins\mediawiki_1_19_11.nasl
- Mac OS X:
/Library/Nessus/run/lib/nessus/plugins/mediawiki_1_19_11.nasl
Go back to menu.
How to Run
Here is how to run the MediaWiki < 1.19.11 / 1.21.5 / 1.22.2 Multiple Remote Code Execution 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 CGI abuses plugin family.
- On the right side table select MediaWiki < 1.19.11 / 1.21.5 / 1.22.2 Multiple Remote Code Execution Vulnerabilities plugin ID 72215.
- 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 mediawiki_1_19_11.nasl -t <IP/HOST>
Run the plugin with audit trail message on the console:
/opt/nessus/bin/nasl -a mediawiki_1_19_11.nasl -t <IP/HOST>
Run the plugin with trace script execution written to the console (useful for debugging):
/opt/nessus/bin/nasl -T - mediawiki_1_19_11.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 mediawiki_1_19_11.nasl -t <IP/HOST>
Go back to menu.
References
BID | SecurityFocus Bugtraq ID: See also:
- https://www.tenable.com/plugins/nessus/72215
- https://seclists.org/fulldisclosure/2014/Feb/6
- https://www.mediawiki.org/wiki/Release_notes/1.19
- https://www.mediawiki.org/wiki/Release_notes/1.21
- https://www.mediawiki.org/wiki/Release_notes/1.22
- http://www.nessus.org/u?92483abd
- http://www.nessus.org/u?f8ca1fc8
- https://vulners.com/nessus/MEDIAWIKI_1_19_11.NASL
- 73256 - Debian DSA-2891-1 : mediawiki, mediawiki-extensions Multiple Vulnerabilities
- 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)
- 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)
- 149344 - Debian DLA-2648-2 : mediawiki regression update
- 153966 - Debian DLA-2779-1 : mediawiki - LTS security update
- 104588 - Debian DSA-4036-1 : mediawiki - security update
- 125858 - Debian DSA-4460-1 : mediawiki - security update
- 132423 - Debian DSA-4592-1 : mediawiki - security update
- 148441 - Debian DSA-4889-1 : mediawiki - security update
- 153862 - Debian DSA-4979-1 : mediawiki - security update
- 35265 - Fedora 8 : mediawiki-1.13.3-41.99.fc8 (2008-11688)
- 36263 - Fedora 10 : mediawiki-1.13.3-42.fc10 (2008-11743)
- 35267 - Fedora 9 : mediawiki-1.13.3-42.fc9 (2008-11802)
- 100184 - Fedora 25 : mediawiki (2017-2643ef1cad)
- 99408 - Fedora 25 : mediawiki (2017-3fb95ed01f)
- 104693 - FreeBSD : mediawiki -- multiple vulnerabilities (298829e2-ccce-11e7-92e4-000c29649f92)
- 126485 - FreeBSD : mediawiki -- multiple vulnerabilities (3c5a4fe0-9ebb-11e9-9169-fcaa147e860e)
- 35243 - FreeBSD : mediawiki -- multiple vulnerabilities (61b07d71-ce0e-11dd-a721-0030843d3802)
- 156986 - GLSA-202107-40 : MediaWiki: Multiple vulnerabilities
Version
This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file mediawiki_1_19_11.nasl version 1.14. For more plugins, visit the Nessus Plugin Library.
Go back to menu.