Vulnerabilities > CVE-2014-1610 - Improper Input Validation vulnerability in Mediawiki
Attack vector
UNKNOWN Attack complexity
UNKNOWN Privileges required
UNKNOWN Confidentiality impact
UNKNOWN Integrity impact
UNKNOWN Availability impact
UNKNOWN Summary
MediaWiki 1.22.x before 1.22.2, 1.21.x before 1.21.5, and 1.19.x before 1.19.11, when DjVu or PDF file upload support is enabled, allows remote attackers to execute arbitrary commands via shell metacharacters in (1) the page parameter to includes/media/DjVu.php; (2) the w parameter (aka width field) to thumb.php, which is not properly handled by includes/media/PdfHandler_body.php; and possibly unspecified vectors in (3) includes/media/Bitmap.php and (4) includes/media/ImageHandler.php.
Vulnerable Configurations
Common Weakness Enumeration (CWE)
Common Attack Pattern Enumeration and Classification (CAPEC)
- Buffer Overflow via Environment Variables This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
- Server Side Include (SSI) Injection An attacker can use Server Side Include (SSI) Injection to send code to a web application that then gets executed by the web server. Doing so enables the attacker to achieve similar results to Cross Site Scripting, viz., arbitrary code execution and information disclosure, albeit on a more limited scale, since the SSI directives are nowhere near as powerful as a full-fledged scripting language. Nonetheless, the attacker can conveniently gain access to sensitive files, such as password files, and execute shell commands.
- Cross Zone Scripting An attacker is able to cause a victim to load content into their web-browser that bypasses security zone controls and gain access to increased privileges to execute scripting code or other web objects such as unsigned ActiveX controls or applets. This is a privilege elevation attack targeted at zone-based web-browser security. In a zone-based model, pages belong to one of a set of zones corresponding to the level of privilege assigned to that page. Pages in an untrusted zone would have a lesser level of access to the system and/or be restricted in the types of executable content it was allowed to invoke. In a cross-zone scripting attack, a page that should be assigned to a less privileged zone is granted the privileges of a more trusted zone. This can be accomplished by exploiting bugs in the browser, exploiting incorrect configuration in the zone controls, through a cross-site scripting attack that causes the attackers' content to be treated as coming from a more trusted page, or by leveraging some piece of system functionality that is accessible from both the trusted and less trusted zone. This attack differs from "Restful Privilege Escalation" in that the latter correlates to the inadequate securing of RESTful access methods (such as HTTP DELETE) on the server, while cross-zone scripting attacks the concept of security zones as implemented by a browser.
- Cross Site Scripting through Log Files An attacker may leverage a system weakness where logs are susceptible to log injection to insert scripts into the system's logs. If these logs are later viewed by an administrator through a thin administrative interface and the log data is not properly HTML encoded before being written to the page, the attackers' scripts stored in the log will be executed in the administrative interface with potentially serious consequences. This attack pattern is really a combination of two other attack patterns: log injection and stored cross site scripting.
- Command Line Execution through SQL Injection An attacker uses standard SQL injection methods to inject data into the command line for execution. This could be done directly through misuse of directives such as MSSQL_xp_cmdshell or indirectly through injection of data into the database that would be interpreted as shell commands. Sometime later, an unscrupulous backend application (or could be part of the functionality of the same application) fetches the injected data stored in the database and uses this data as command line arguments without performing proper validation. The malicious data escapes that data plane by spawning new commands to be executed on the host.
D2sec
name | MediaWiki thumb.php page Parameter Remote Shell Command Injection |
url | http://www.d2sec.com/exploits/mediawiki_thumb.php_page_parameter_remote_shell_command_injection.html |
Exploit-Db
description MediaWiki 1.22.1 PdfHandler - Remote Code Execution Exploit. CVE-2014-1610. Webapps exploits for multiple platform file exploits/multiple/webapps/31329.txt id EDB-ID:31329 last seen 2016-02-03 modified 2014-02-01 platform multiple port published 2014-02-01 reporter @u0x source https://www.exploit-db.com/download/31329/ title MediaWiki 1.22.1 PdfHandler - Remote Code Execution Exploit type webapps description MediaWiki Thumb.php - Remote Command Execution. CVE-2014-1610. Remote exploits for multiple platform id EDB-ID:31767 last seen 2016-02-03 modified 2014-02-19 published 2014-02-19 reporter metasploit source https://www.exploit-db.com/download/31767/ title MediaWiki Thumb.php - Remote Command Execution
Metasploit
description | MediaWiki 1.22.x before 1.22.2, 1.21.x before 1.21.5 and 1.19.x before 1.19.11, when DjVu or PDF file upload support is enabled, allows remote unauthenticated users to execute arbitrary commands via shell metacharacters. If no target file is specified this module will attempt to log in with the provided credentials to upload a file (.DjVu) to use for exploitation. |
id | MSF:EXPLOIT/MULTI/HTTP/MEDIAWIKI_THUMB |
last seen | 2020-05-24 |
modified | 2017-08-29 |
published | 2014-02-07 |
references | |
reporter | Rapid7 |
source | https://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/multi/http/mediawiki_thumb.rb |
title | MediaWiki Thumb.php Remote Command Execution |
Nessus
NASL family CGI abuses NASL id MEDIAWIKI_1_19_11.NASL 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 last seen 2020-06-01 modified 2020-06-02 plugin id 72215 published 2014-01-30 reporter This script is Copyright (C) 2014-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/72215 title MediaWiki < 1.19.11 / 1.21.5 / 1.22.2 Multiple Remote Code Execution Vulnerabilities NASL family CGI abuses NASL id MEDIAWIKI_THUMB_RCE.NASL description The version of MediaWiki running on the remote host is affected by a remote command injection vulnerability due to a failure to properly sanitize user-supplied input to the last seen 2020-06-01 modified 2020-06-02 plugin id 72618 published 2014-02-21 reporter This script is Copyright (C) 2014-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/72618 title MediaWiki thumb.php 'w' Parameter Remote Shell Command Injection NASL family Gentoo Local Security Checks NASL id GENTOO_GLSA-201502-04.NASL description The remote host is affected by the vulnerability described in GLSA-201502-04 (MediaWiki: Multiple vulnerabilities) Multiple vulnerabilities have been discovered in MediaWiki. Please review the CVE identifiers and MediaWiki announcement referenced below for details. Impact : A remote attacker may be able to execute arbitrary code with the privileges of the process, create a Denial of Service condition, obtain sensitive information, bypass security restrictions, and inject arbitrary web script or HTML. Workaround : There is no known workaround at this time. last seen 2020-06-01 modified 2020-06-02 plugin id 81227 published 2015-02-09 reporter This script is Copyright (C) 2015-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/81227 title GLSA-201502-04 : MediaWiki: Multiple vulnerabilities NASL family Fedora Local Security Checks NASL id FEDORA_2014-1802.NASL description - Update to 1.21.5 - (bug 60339) (CVE-2014-1610) SECURITY: Reported RCE in djvu thumbnailing Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues. last seen 2020-03-17 modified 2014-02-07 plugin id 72379 published 2014-02-07 reporter This script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/72379 title Fedora 19 : mediawiki-1.21.5-1.fc19 (2014-1802) NASL family Mandriva Local Security Checks NASL id MANDRIVA_MDVSA-2014-057.NASL description Updated mediawiki packages fix multiple vulnerabilities : MediaWiki user Michael M reported that the fix for CVE-2013-4568 allowed insertion of escaped CSS values which could pass the CSS validation checks, resulting in XSS (CVE-2013-6451). Chris from RationalWiki reported that SVG files could be uploaded that include external stylesheets, which could lead to XSS when an XSL was used to include JavaScript (CVE-2013-6452). During internal review, it was discovered that MediaWiki last seen 2020-06-01 modified 2020-06-02 plugin id 73004 published 2014-03-14 reporter This script is Copyright (C) 2014-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/73004 title Mandriva Linux Security Advisory : mediawiki (MDVSA-2014:057) NASL family Debian Local Security Checks NASL id DEBIAN_DSA-2891.NASL 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 last seen 2020-03-17 modified 2014-03-31 plugin id 73256 published 2014-03-31 reporter This script is Copyright (C) 2014-2020 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/73256 title Debian DSA-2891-1 : mediawiki, mediawiki-extensions Multiple Vulnerabilities NASL family Fedora Local Security Checks NASL id FEDORA_2014-1745.NASL description - Update to 1.21.5 - (bug 60339) (CVE-2014-1610) SECURITY: Reported RCE in djvu thumbnailing Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues. last seen 2020-03-17 modified 2014-02-07 plugin id 72376 published 2014-02-07 reporter This script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/72376 title Fedora 20 : mediawiki-1.21.5-1.fc20 (2014-1745)
Packetstorm
data source https://packetstormsecurity.com/files/download/125040/mediawiki1221-exec.txt id PACKETSTORM:125040 last seen 2016-12-05 published 2014-02-03 reporter Xelenonz source https://packetstormsecurity.com/files/125040/MediaWiki-1.22.1-PdfHandler-Remote-Code-Execution.html title MediaWiki 1.22.1 PdfHandler Remote Code Execution data source https://packetstormsecurity.com/files/download/125287/mediawiki_thumb.rb.txt id PACKETSTORM:125287 last seen 2016-12-05 published 2014-02-19 reporter Brandon Perry source https://packetstormsecurity.com/files/125287/MediaWiki-Thumb.php-Remote-Command-Execution.html title MediaWiki Thumb.php Remote Command Execution
Seebug
bulletinFamily exploit description No description provided by source. id SSV:85082 last seen 2017-11-19 modified 2014-07-01 published 2014-07-01 reporter Root source https://www.seebug.org/vuldb/ssvid-85082 title MediaWiki Thumb.php - Remote Command Execution bulletinFamily exploit description CVE ID:CVE-2014-1610 MediaWiki是美国维基媒体(Wikimedia)基金会和MediaWiki志愿者共同开发维护的一套自由免费的基于网络的Wiki引擎,它可用于部署内部的知识管理和内容管理系统。 MediaWiki中存在输入验证漏洞,该漏洞源于thumb.php脚本没有正确过滤‘page’参数。当启用支持上传DjVu或PDF文件时,远程攻击者可借助特制的shell元字符利用该漏洞执行任意命令。以下版本受到影响:MediaWiki 1.22.2之前的1.22.x版本,1.21.5之前的1.21.x版本,1.19.11之前的1.19.x版本。 0 MediaWiki <= 1.22.1 MediaWiki <= 1.21.4 MediaWiki <= 1.19.10 厂商补丁: MediaWiki ----- 目前厂商已经发布了升级补丁以修复此安全问题,补丁获取链接: http://lists.wikimedia.org/pipermail/mediawiki-announce/2014-January/000140.html id SSV:61437 last seen 2017-11-19 modified 2014-02-13 published 2014-02-13 reporter Root source https://www.seebug.org/vuldb/ssvid-61437 title MediaWiki远程代码执行漏洞
The Hacker News
id | THN:14D220C3673BA5820F7A055DC2CB7A3A |
last seen | 2018-01-27 |
modified | 2014-01-30 |
published | 2014-01-29 |
reporter | Sudhir K Bansal |
source | https://thehackernews.com/2014/01/mediawiki-remote-code-execution.html |
title | MediaWiki Remote Code Execution vulnerability leaves Wikipedia open for Cyber attacks |
References
- http://lists.fedoraproject.org/pipermail/package-announce/2014-February/127942.html
- http://lists.fedoraproject.org/pipermail/package-announce/2014-February/127942.html
- http://lists.fedoraproject.org/pipermail/package-announce/2014-February/127948.html
- http://lists.fedoraproject.org/pipermail/package-announce/2014-February/127948.html
- http://lists.wikimedia.org/pipermail/mediawiki-announce/2014-January/000140.html
- http://lists.wikimedia.org/pipermail/mediawiki-announce/2014-January/000140.html
- http://osvdb.org/102630
- http://osvdb.org/102630
- http://secunia.com/advisories/56695
- http://secunia.com/advisories/56695
- http://secunia.com/advisories/57472
- http://secunia.com/advisories/57472
- http://www.checkpoint.com/defense/advisories/public/2014/cpai-26-jan.html
- http://www.checkpoint.com/defense/advisories/public/2014/cpai-26-jan.html
- http://www.checkpoint.com/threatcloud-central/articles/2014-01-28-tc-researchers-discover.html
- http://www.checkpoint.com/threatcloud-central/articles/2014-01-28-tc-researchers-discover.html
- http://www.debian.org/security/2014/dsa-2891
- http://www.debian.org/security/2014/dsa-2891
- http://www.exploit-db.com/exploits/31329/
- http://www.exploit-db.com/exploits/31329/
- http://www.osvdb.org/102631
- http://www.osvdb.org/102631
- http://www.securityfocus.com/bid/65223
- http://www.securityfocus.com/bid/65223
- http://www.securitytracker.com/id/1029707
- http://www.securitytracker.com/id/1029707
- https://bugzilla.wikimedia.org/attachment.cgi?id=14361&action=diff
- https://bugzilla.wikimedia.org/attachment.cgi?id=14361&action=diff
- https://bugzilla.wikimedia.org/attachment.cgi?id=14384&action=diff
- https://bugzilla.wikimedia.org/attachment.cgi?id=14384&action=diff
- https://bugzilla.wikimedia.org/show_bug.cgi?id=60339
- https://bugzilla.wikimedia.org/show_bug.cgi?id=60339
- https://gerrit.wikimedia.org/r/#/c/110069/
- https://gerrit.wikimedia.org/r/#/c/110069/
- https://gerrit.wikimedia.org/r/#/c/110069/2/includes/media/Bitmap.php
- https://gerrit.wikimedia.org/r/#/c/110069/2/includes/media/Bitmap.php
- https://gerrit.wikimedia.org/r/#/c/110215/
- https://gerrit.wikimedia.org/r/#/c/110215/