Vulnerabilities > CVE-2011-1579 - 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
The checkCss function in includes/Sanitizer.php in the wikitext parser in MediaWiki before 1.16.3 does not properly validate Cascading Style Sheets (CSS) token sequences, which allows remote attackers to conduct cross-site scripting (XSS) attacks or obtain sensitive information by using the \2f\2a and \2a\2f hex strings to surround CSS comments.
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.
Nessus
NASL family Gentoo Local Security Checks NASL id GENTOO_GLSA-201206-09.NASL description The remote host is affected by the vulnerability described in GLSA-201206-09 (MediaWiki: Multiple vulnerabilities) Multiple vulnerabilities have been discovered in mediawiki. Please review the CVE identifiers referenced below for details. Impact : MediaWiki allows remote attackers to bypass authentication, to perform imports from any wgImportSources wiki via a crafted POST request, to conduct cross-site scripting (XSS) attacks or obtain sensitive information, to inject arbitrary web script or HTML, to conduct clickjacking attacks, to execute arbitrary PHP code, to inject arbitrary web script or HTML, to bypass intended access restrictions and to obtain sensitive information. Workaround : There is no known workaround at this time. last seen 2020-06-01 modified 2020-06-02 plugin id 59647 published 2012-06-22 reporter This script is Copyright (C) 2012-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/59647 title GLSA-201206-09 : MediaWiki: Multiple vulnerabilities NASL family Debian Local Security Checks NASL id DEBIAN_DSA-2366.NASL description Several problems have been discovered in MediaWiki, a website engine for collaborative work. - CVE-2011-1578 CVE-2011-1587 Masato Kinugawa discovered a cross-site scripting (XSS) issue, which affects Internet Explorer clients only, and only version 6 and earlier. Web server configuration changes are required to fix this issue. Upgrading MediaWiki will only be sufficient for people who use Apache with AllowOverride enabled. For details of the required configuration changes, see the upstream announcements. - CVE-2011-1579 Wikipedia user Suffusion of Yellow discovered a CSS validation error in the wikitext parser. This is an XSS issue for Internet Explorer clients, and a privacy loss issue for other clients since it allows the embedding of arbitrary remote images. - CVE-2011-1580 MediaWiki developer Happy-Melon discovered that the transwiki import feature neglected to perform access control checks on form submission. The transwiki import feature is disabled by default. If it is enabled, it allows wiki pages to be copied from a remote wiki listed in $wgImportSources. The issue means that any user can trigger such an import to occur. - CVE-2011-4360 Alexandre Emsenhuber discovered an issue where page titles on private wikis could be exposed bypassing different page ids to index.php. In the case of the user not having correct permissions, they will now be redirected to Special:BadTitle. - CVE-2011-4361 Tim Starling discovered that action=ajax requests were dispatched to the relevant function without any read permission checks being done. This could have led to data leakage on private wikis. last seen 2020-03-17 modified 2012-01-12 plugin id 57506 published 2012-01-12 reporter This script is Copyright (C) 2012-2020 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/57506 title Debian DSA-2366-1 : mediawiki - multiple vulnerabilities NASL family Fedora Local Security Checks NASL id FEDORA_2011-5807.NASL description This update brings mediawiki to version 1.16.4, which is the latest stable release at the moment, but currently also the only supported and recommended release by the mediawiki developer community. Further changes : - some simple wiki management functionality was added : - mw-createinstance <path> creates a wiki instance under <path>, which is autoupgraded upon package updates. - any wiki path entered in /etc/mediawiki/instances will be autoupgraded upon package updates. - /var/www/wiki is entered into this list automatically, but you can remove it if you don last seen 2020-06-01 modified 2020-06-02 plugin id 53608 published 2011-05-02 reporter This script is Copyright (C) 2011-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/53608 title Fedora 13 : mediawiki-1.16.4-58.fc13 (2011-5807) NASL family Fedora Local Security Checks NASL id FEDORA_2011-5848.NASL description This update brings mediawiki to version 1.16.4, which is the latest stable release at the moment, but currently also the only supported and recommended release by the mediawiki developer community. Further changes : - some simple wiki management functionality was added : - mw-createinstance <path> creates a wiki instance under <path>, which is autoupgraded upon package updates. - any wiki path entered in /etc/mediawiki/instances will be autoupgraded upon package updates. - /var/www/wiki is entered into this list automatically, but you can remove it if you don last seen 2020-06-01 modified 2020-06-02 plugin id 53567 published 2011-04-27 reporter This script is Copyright (C) 2011-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/53567 title Fedora 15 : mediawiki-1.16.4-58.fc15 (2011-5848) NASL family Fedora Local Security Checks NASL id FEDORA_2011-5812.NASL description This update brings mediawiki to version 1.16.4, which is the latest stable release at the moment, but currently also the only supported and recommended release by the mediawiki developer community. Further changes : - some simple wiki management functionality was added : - mw-createinstance <path> creates a wiki instance under <path>, which is autoupgraded upon package updates. - any wiki path entered in /etc/mediawiki/instances will be autoupgraded upon package updates. - /var/www/wiki is entered into this list automatically, but you can remove it if you don last seen 2020-06-01 modified 2020-06-02 plugin id 53609 published 2011-05-02 reporter This script is Copyright (C) 2011-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/53609 title Fedora 14 : mediawiki-1.16.4-58.fc14 (2011-5812) NASL family Fedora Local Security Checks NASL id FEDORA_2011-5495.NASL description This update brings mediawiki to version 1.16.2, which is the latest stable release at the moment, but currently also the only supported and recommended release by the mediawiki developer community. Further changes : - some simple wiki management functionality was added : - mw-createinstance <path> creates a wiki instance under <path>, which is autoupgraded upon package updates. - any wiki path entered in /etc/mediawiki/instances will be autoupgraded upon package updates. - /var/www/wiki is entered into this list automatically, but you can remove it if you don last seen 2020-06-01 modified 2020-06-02 plugin id 53521 published 2011-04-22 reporter This script is Copyright (C) 2011-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/53521 title Fedora 15 : mediawiki-1.16.4-57.fc15 (2011-5495) NASL family CGI abuses : XSS NASL id MEDIAWIKI_1_16_3.NASL description This installation of MediaWiki is affected by a cross-site scripting vulnerability that allows an attacker to execute arbitrary script code in the browser of an unsuspecting user. Such script code can steal authentication credentials and be used to launch other attacks. This version of MediaWiki may also contain a second cross-site scripting and/or an unauthorized access vulnerability, but this plugin did not test for these vulnerabilities. last seen 2020-06-01 modified 2020-06-02 plugin id 53448 published 2011-04-15 reporter This script is Copyright (C) 2011-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/53448 title MediaWiki Backslash Escaped CSS Comments XSS
References
- http://lists.fedoraproject.org/pipermail/package-announce/2011-April/058588.html
- http://lists.fedoraproject.org/pipermail/package-announce/2011-April/058910.html
- http://lists.fedoraproject.org/pipermail/package-announce/2011-April/059232.html
- http://lists.fedoraproject.org/pipermail/package-announce/2011-April/059235.html
- http://lists.wikimedia.org/pipermail/mediawiki-announce/2011-April/000096.html
- http://openwall.com/lists/oss-security/2011/04/13/15
- http://secunia.com/advisories/44142
- http://www.debian.org/security/2011/dsa-2366
- http://www.mediawiki.org/wiki/Special:Code/MediaWiki/85856
- http://www.securityfocus.com/bid/47354
- http://www.vupen.com/english/advisories/2011/0978
- http://www.vupen.com/english/advisories/2011/1100
- http://www.vupen.com/english/advisories/2011/1151
- https://bugzilla.redhat.com/show_bug.cgi?id=695577
- https://bugzilla.redhat.com/show_bug.cgi?id=696360
- https://bugzilla.wikimedia.org/show_bug.cgi?id=28450
- https://exchange.xforce.ibmcloud.com/vulnerabilities/66738
- http://lists.fedoraproject.org/pipermail/package-announce/2011-April/058588.html
- https://exchange.xforce.ibmcloud.com/vulnerabilities/66738
- https://bugzilla.wikimedia.org/show_bug.cgi?id=28450
- https://bugzilla.redhat.com/show_bug.cgi?id=696360
- https://bugzilla.redhat.com/show_bug.cgi?id=695577
- http://www.vupen.com/english/advisories/2011/1151
- http://www.vupen.com/english/advisories/2011/1100
- http://www.vupen.com/english/advisories/2011/0978
- http://www.securityfocus.com/bid/47354
- http://www.mediawiki.org/wiki/Special:Code/MediaWiki/85856
- http://www.debian.org/security/2011/dsa-2366
- http://secunia.com/advisories/44142
- http://openwall.com/lists/oss-security/2011/04/13/15
- http://lists.wikimedia.org/pipermail/mediawiki-announce/2011-April/000096.html
- http://lists.fedoraproject.org/pipermail/package-announce/2011-April/059235.html
- http://lists.fedoraproject.org/pipermail/package-announce/2011-April/059232.html
- http://lists.fedoraproject.org/pipermail/package-announce/2011-April/058910.html