Page MenuHomePhabricator

Split user right "editusercssjs"
Closed, ResolvedPublic

Description

The user right "editusercssjs" should be split into "editusercss" and "edituserjs". Javascript can be dangerous, esp. on larger wikis where there are a lot of sysops. With the right split, a higher level user (e.g., bureaucrat) could be allowed to edit .js while regular sysops could edit .css.

Also, if possible, splitting this right for the MediaWiki namespace as well would probably be a good idea, though abuse there is less likely as it usually has more eyes watching it.


Version: unspecified
Severity: enhancement

Details

Reference
bz12110

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:55 PM
bzimport set Reference to bz12110.
bzimport added a subscriber: Unknown Object (MLST).

CSS can contain JavaScript, at least for Internet Explorer (see http://feedparser.org/docs/html-sanitization.html). So this separation does not achieve the security you want to have. Of course, splitting the rights might still be a good idea to prevent sysops from accidentally inserting vulnerable JavaScript code.