Skip to content

Mediawiki extension to serve as a better fix for the security issue presented by bug 70672.

License

Notifications You must be signed in to change notification settings

HydraWiki/Bug70672

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bug70672

Bug70672 is an extension to MediaWiki that prevents saving any custom CSS that contains JavaScript imports.

Rationale

Bug 70672 fixes a security hole introduced by allowing JavaScript loading via CSS in the MediaWiki namespace. It does this by breaking the functionality of loading CSS when on the "Special:UserLogin" and "Special:Preferences" pages. This also means that any custom styles are not loaded. As a result this causes confusion for the end user who may believe that they may have been maliciously redirected to a different site to enter their username and password. This is an undesirable side effect for the user interface.

This extension rather prevents saving any custom CSS that contains JavaScript imports and thus avoids the security problem from the start.

Compatibility

  • PHP 5.4+
  • MediaWiki 1.17+

Installation

(1) Obtain the code from GitHub
(2) Extract the files in a directory called Bug70672 in your extensions/ folder.
(3) Add the following code at the bottom of your "LocalSettings.php" file:
     require_once "$IP/extensions/Bug70672/Bug70672.php";
(4) Go to "Special:Version" on your wiki to verify that the extension is successfully installed.
(5) Done.

About

Mediawiki extension to serve as a better fix for the security issue presented by bug 70672.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages