when a page is proteced at a level that a normal sysop can't override, he can recreate this page by undelete former revisions, see also the last to log entrys here: http://meta.wikimedia.beta.wmflabs.org/w/index.php?title=Special:Log&page=Superprotecttest, my normal account Luke081515 got rights to edit pages with superprotect, Luke081515.2 was a normal sysop, and can't edit pages with superprotect.
Description
Details
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | demon | T161996 Release MediaWiki 1.28.1/1.27.2/1.23.16 | |||
Resolved | Reedy | T140591 MediaWiki 1.28.1/1.27.2/1.23.16 security release | |||
Resolved | Bawolff | T108138 Sysops can undelete pages, although the page is protected against it |
Event Timeline
this removal happens automatically then you create a bug with "software security bug"
reproduction
- delete existing page
- add protection to title to allow only superprotect users to create the title
- As a user who can undelete, but not superprotect, undelete the title
- After restoration, the page is not limited to superprotect users, so anyone can edit
While testing this, I noticed that a non-superprotect user can update the protection for a deleted (or never created) + superprotected page also, so restoring a deleted revision isn't actually needed.
@Anomie, did superprotect intentionally not cover this case, or do protect and undelete need to check creation rights for that title?
While testing this, I noticed that a non-superprotect user can update the protection for a deleted (or never created) + superprotected page also, so restoring a deleted revision isn't actually needed.
Which is T108141
Who could give these 25 lines (in includes/Title.php and includes/api/ApiUndelete.php) a final review / decision?
Closing for ease of tracking progress. Patches attached to parent bug, due for next release
Can you take a look at T108141 as well, since it is related, and there is already a patch awaiting review?
Change 346847 merged by jenkins-bot:
[mediawiki/core@master] SECURITY: Do not allow users to undelete a page they can't edit or create
Change 346866 merged by jenkins-bot:
[mediawiki/core@REL1_28] SECURITY: Do not allow users to undelete a page they can't edit or create
Change 346856 merged by jenkins-bot:
[mediawiki/core@REL1_27] SECURITY: Do not allow users to undelete a page they can't edit or create