Vulnerabilities > CVE-2014-1610 - Improper Input Validation vulnerability in Mediawiki

047910
CVSS 6.0 - MEDIUM
Attack vector
NETWORK
Attack complexity
MEDIUM
Privileges required
SINGLE
Confidentiality impact
PARTIAL
Integrity impact
PARTIAL
Availability impact
PARTIAL
network
mediawiki
CWE-20
nessus
exploit available
metasploit

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.

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

nameMediaWiki thumb.php page Parameter Remote Shell Command Injection
urlhttp://www.d2sec.com/exploits/mediawiki_thumb.php_page_parameter_remote_shell_command_injection.html

Exploit-Db

  • descriptionMediaWiki 1.22.1 PdfHandler - Remote Code Execution Exploit. CVE-2014-1610. Webapps exploits for multiple platform
    fileexploits/multiple/webapps/31329.txt
    idEDB-ID:31329
    last seen2016-02-03
    modified2014-02-01
    platformmultiple
    port
    published2014-02-01
    reporter@u0x
    sourcehttps://www.exploit-db.com/download/31329/
    titleMediaWiki 1.22.1 PdfHandler - Remote Code Execution Exploit
    typewebapps
  • descriptionMediaWiki Thumb.php - Remote Command Execution. CVE-2014-1610. Remote exploits for multiple platform
    idEDB-ID:31767
    last seen2016-02-03
    modified2014-02-19
    published2014-02-19
    reportermetasploit
    sourcehttps://www.exploit-db.com/download/31767/
    titleMediaWiki Thumb.php - Remote Command Execution

Metasploit

descriptionMediaWiki 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.
idMSF:EXPLOIT/MULTI/HTTP/MEDIAWIKI_THUMB
last seen2020-05-24
modified2017-08-29
published2014-02-07
references
reporterRapid7
sourcehttps://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/multi/http/mediawiki_thumb.rb
titleMediaWiki Thumb.php Remote Command Execution

Nessus

  • NASL familyCGI abuses
    NASL idMEDIAWIKI_1_19_11.NASL
    descriptionAccording 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 seen2020-06-01
    modified2020-06-02
    plugin id72215
    published2014-01-30
    reporterThis script is Copyright (C) 2014-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/72215
    titleMediaWiki < 1.19.11 / 1.21.5 / 1.22.2 Multiple Remote Code Execution Vulnerabilities
  • NASL familyCGI abuses
    NASL idMEDIAWIKI_THUMB_RCE.NASL
    descriptionThe 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 seen2020-06-01
    modified2020-06-02
    plugin id72618
    published2014-02-21
    reporterThis script is Copyright (C) 2014-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/72618
    titleMediaWiki thumb.php 'w' Parameter Remote Shell Command Injection
  • NASL familyGentoo Local Security Checks
    NASL idGENTOO_GLSA-201502-04.NASL
    descriptionThe 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 seen2020-06-01
    modified2020-06-02
    plugin id81227
    published2015-02-09
    reporterThis script is Copyright (C) 2015-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/81227
    titleGLSA-201502-04 : MediaWiki: Multiple vulnerabilities
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_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 seen2020-03-17
    modified2014-02-07
    plugin id72379
    published2014-02-07
    reporterThis script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/72379
    titleFedora 19 : mediawiki-1.21.5-1.fc19 (2014-1802)
  • NASL familyMandriva Local Security Checks
    NASL idMANDRIVA_MDVSA-2014-057.NASL
    descriptionUpdated 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 seen2020-06-01
    modified2020-06-02
    plugin id73004
    published2014-03-14
    reporterThis script is Copyright (C) 2014-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/73004
    titleMandriva Linux Security Advisory : mediawiki (MDVSA-2014:057)
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DSA-2891.NASL
    descriptionThe 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 seen2020-03-17
    modified2014-03-31
    plugin id73256
    published2014-03-31
    reporterThis script is Copyright (C) 2014-2020 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/73256
    titleDebian DSA-2891-1 : mediawiki, mediawiki-extensions Multiple Vulnerabilities
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_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 seen2020-03-17
    modified2014-02-07
    plugin id72376
    published2014-02-07
    reporterThis script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/72376
    titleFedora 20 : mediawiki-1.21.5-1.fc20 (2014-1745)

Packetstorm

Seebug

  • bulletinFamilyexploit
    descriptionNo description provided by source.
    idSSV:85082
    last seen2017-11-19
    modified2014-07-01
    published2014-07-01
    reporterRoot
    sourcehttps://www.seebug.org/vuldb/ssvid-85082
    titleMediaWiki Thumb.php - Remote Command Execution
  • bulletinFamilyexploit
    descriptionCVE 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 &lt;= 1.22.1 MediaWiki &lt;= 1.21.4 MediaWiki &lt;= 1.19.10 厂商补丁: MediaWiki ----- 目前厂商已经发布了升级补丁以修复此安全问题,补丁获取链接: http://lists.wikimedia.org/pipermail/mediawiki-announce/2014-January/000140.html
    idSSV:61437
    last seen2017-11-19
    modified2014-02-13
    published2014-02-13
    reporterRoot
    sourcehttps://www.seebug.org/vuldb/ssvid-61437
    titleMediaWiki远程代码执行漏洞

The Hacker News

idTHN:14D220C3673BA5820F7A055DC2CB7A3A
last seen2018-01-27
modified2014-01-30
published2014-01-29
reporterSudhir K Bansal
sourcehttps://thehackernews.com/2014/01/mediawiki-remote-code-execution.html
titleMediaWiki Remote Code Execution vulnerability leaves Wikipedia open for Cyber attacks