Mailing List Archive

MediaWiki security and maintenance release 1.18.2
I would like to announce the release of MediaWiki 1.18.2. Five security
issues were discovered.

It was discovered that the api had a cross-site request forgery (CSRF)
vulnerability in the block/unblock modules. It was possible for a user
account with the block privileges to block or unblock another user without
providing a token.

For more details, see

It was discovered that the resource loader can leak certain kinds of private
data across domain origin boundaries, by providing the data as an executable
JavaScript file. In MediaWiki 1.18 and later, this includes the leaking of
protection tokens. This allows compromise of the wiki's user accounts, say
changing the user's email address and then requesting a password reset.

For more details, see

Jan Schejbal of discovered a cross-site request forgery (CSRF)
vulnerability in Special:Upload. Modern browsers (since at least as early as
December 2010) are able to post file uploads without user interaction,
violating previous security assumptions within MediaWiki.

Depending on the wiki's configuration, this vulnerability could lead to
compromise, especially on private wikis where the set of allowed file types
broader than on public wikis. Note that CSRF allows compromise of a wiki
an external website even if the wiki is behind a firewall.

For more details, see

George Argyros and Aggelos Kiayias reported that the method used to generate
password reset tokens is not sufficiently secure. Instead we use various
secure random number generators, depending on what is available on the
platform. Windows users are strongly advised to install either the openssl
extension or the mcrypt extension for PHP so that MediaWiki can take
of the cryptographic random number facility provided by Windows.

Any extension developers using mt_rand() to generate random numbers in
where security is required are encouraged to instead make use of the
MWCryptRand class introduced with this release.

For more details, see

A long-standing bug in the wikitext parser (bug 22555) was discovered to
security implications. In the presence of the popular CharInsert extension,
leads to cross-site scripting (XSS). XSS may be possible with other
or perhaps even the MediaWiki core alone, although this is not confirmed at
this time. A denial-of-service attack (infinite loop) is also possible
regardless of configuration.

For more details, see

Full release notes:;a=blob_plain;f=RE

Co-inciding with these security releases, the MediaWiki source code
repository has
moved from SVN (at
to Git ( So the
commits for these releases will not be appearing in our SVN repository. If
you use
SVN checkouts of MediaWiki for version control, you need to migrate these to
If you up are using tarballs, there should be no change in the process for

Please note that any WMF-deployed extensions have also been migrated to Git
also, along with some other non WMF-maintained ones.

Please bear with us, some of the Git related links for this release may not
work instantly,
but should later on.

To do a simple Git clone, the command is:
git clone

More information is available at

For more help, please visit the #mediawiki IRC channel on
irc:// or email The MediaWiki-l mailing list


Patch to previous version (1.18.1), without interface text:
Interface text changes:

GPG signatures:

Public keys:

Wikitech-l mailing list