Last modified: 2014-10-01 19:10:11 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 23542 - Cascade protection and file redirects
Cascade protection and file redirects
Product: MediaWiki
Classification: Unclassified
Page protection (Other open bugs)
All All
: Normal normal with 1 vote (vote)
: ---
Assigned To: Bawolff (Brian Wolff)
Depends on:
Blocks: 8575
  Show dependency treegraph
Reported: 2010-05-16 03:00 UTC by Betacommand
Modified: 2014-10-01 19:10 UTC (History)
8 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Betacommand 2010-05-16 03:00:26 UTC
If page [[A]] has a file link to [[File:foo]] and [[File:foo]] is a redirect to [[File:Bar]] Bar is not protected when [[A]] is cascade protected. Thus it opens a exploit to vandals to attack important pages if/when they end up using file redirects instead of direct links.
Comment 1 db [inactive,noenotif] 2011-01-23 19:27:09 UTC
A transclusion over redirect is also stored under the target template in the templatelinks table.

This is not happen for files, so there is no entry in the imagelinks table and the cascade protection cannot work.
Comment 2 Betacommand 2013-06-13 17:13:42 UTC
Poke, this is still a exploitable vulnerability that needs fixed.
Comment 3 Bawolff (Brian Wolff) 2013-06-13 23:35:19 UTC
I'll look into this
Comment 4 Gerrit Notification Bot 2014-01-06 21:30:57 UTC
Change 105830 had a related patch set uploaded by Anomie:
Make imagelinks work like templatelinks
Comment 5 Gerrit Notification Bot 2014-01-07 23:17:42 UTC
Change 105830 merged by jenkins-bot:
Make imagelinks work like templatelinks
Comment 6 Brad Jorsch 2014-01-08 16:47:27 UTC
Should be deployed to WMF wikis with 1.23wmf10, see for the schedule.

This will, of course, depend on those pages linking to the redirect having a LinksUpdate job run (e.g. they need to be edited, or purged with forcelinkupdate, or the file redirect could be purged with forcerecursivelinkupdate).
Comment 7 Bohdan 2014-10-01 19:10:11 UTC
So and similar could be updated?

Note You need to log in before you can comment on or make changes to this bug.