wiki.techinc.nl/includes/resourceloader
Reedy 13169c88c1 * (bug 34212) ApiBlock/ApiUnblock allow action to take place without a token parameter present
* (bug 35317) CSRF in Special:Upload
Revert r56793, which removed the CSRF check for Special:Upload for normal file
uploads. Cross-site posting of file uploads without user interaction has been
possible since at least as early as Chrome 8 (late 2010) and Firefox 6 (mid
2011).

Commonist has used api.php since version 0.4.0 (April 2010), and the API
already requires an edit token, so Commonist 0.4.0+ is not affected by this
change.

* (bug 34907) Fix for CSRF vulnerability due to mw.user.tokens. Patch by Roan
Kattouw and Tim Starling.
* Filter out private modules early in ResourceLoader::makeResponse() and just
pretend they weren't specified. This means these modules cannot be loaded
through load.php . This filtering must not happen in makeModuleResponse(),
because that would break inlining.
* Force inlining of private modules in OutputPage::makeResourceLoaderLink(),
disregarding $wgResourceLoaderInlinePrivateModules
* Remove $wgResourceLoaderInlinePrivateModules
* Remove special treatment of private modules ($private) in
ResourceLoader::makeResponse() and sendResponseHeaders(), because we're not
allowing private modules to be loaded through here any more
* Remove identity checks in ResourceLoaderUserOptionsModule and
ResourceLoaderUserCSSPrefsModule, they didn't make a lot of sense before but
they're certainly useless now.
* Factored out error comment construction in ResourceLoader.php and stripped
comment terminations from exception messages. I didn't find an XSS
vulnerability but it looked scary.

Patchset2:
 Removes whitespace error that prevented automatic merge by Gerrit:
 includes/resourceloader/ResourceLoaderUserOptionsModule.php

Change-Id: I2dec8b8caf9db3c64919763865cc10cccdd6a1a3
2012-03-26 11:46:46 +02:00
..
ResourceLoader.php * (bug 34212) ApiBlock/ApiUnblock allow action to take place without a token parameter present 2012-03-26 11:46:46 +02:00
ResourceLoaderContext.php In ResourceLoaderContext, normalize invalid skin names to $wgDefaultSkin . This should help a lot with the pollution of the module_deps table, which is currently littered with invalid skin names from people trying to hack the site. I found 3,897 (!!) distinct values for md_skin 2012-02-27 22:41:20 +00:00
ResourceLoaderFileModule.php
ResourceLoaderFilePageModule.php
ResourceLoaderModule.php (bug 35036) Wikipage-based ResourceLoader modules were not automatically purged as they should be when one of their messages changed. In practice, this only affected WikiLove. 2012-03-07 19:33:37 +00:00
ResourceLoaderNoscriptModule.php
ResourceLoaderSiteModule.php
ResourceLoaderStartUpModule.php Bug 34604 - [mw.config] wgActionPaths should be an object instead of a numeral array JavaScript 2012-02-23 02:45:45 +00:00
ResourceLoaderUserCSSPrefsModule.php * (bug 34212) ApiBlock/ApiUnblock allow action to take place without a token parameter present 2012-03-26 11:46:46 +02:00
ResourceLoaderUserGroupsModule.php
ResourceLoaderUserModule.php
ResourceLoaderUserOptionsModule.php * (bug 34212) ApiBlock/ApiUnblock allow action to take place without a token parameter present 2012-03-26 11:46:46 +02:00
ResourceLoaderUserTokensModule.php Adds a supportsURLLoading method which returns false to user tokens and user options modules. This prevents them from being linked to direction which fixes an issue where in debug mode logged in users were being served anon tokens and options. This should resolve bug #34469. 2012-02-21 22:08:23 +00:00
ResourceLoaderWikiModule.php (bug 35036) Wikipage-based ResourceLoader modules were not automatically purged as they should be when one of their messages changed. In practice, this only affected WikiLove. 2012-03-07 19:33:37 +00:00