Summary
Semantic MediaWiki has an authorization flaw in how it checks changes to page protection. An editor who can modify a transcluded template may be able to remove edit and move protection that was recorded under an administrator's name.
Affected context
The issue is reported in Semantic MediaWiki versions 7.3.1 through versions before 7.4.1. It occurs in EditProtectionUpdater::userMayChangeProtection(), where authorization for protection changes is checked against the page's latest revision author. The risky condition involves a transcluded template whose content can affect the page's edit-protection state.
Exploit preconditions
- Attack surface: Editing a template that is transcluded on a page with edit or move protection.
- Required access: Permission to edit the relevant template or otherwise change the content that influences the protection update.
- Trigger point: Processing an edit that updates protection state based on the template's semantic content.
- Why exploitation is possible: The authorization check can rely on the latest revision author rather than correctly verifying the user's authority to change the protection.
Why this happens
The authorization decision is based on the wrong identity or context: the page's latest revision author is used when determining whether protection may be changed. This is an incorrect authorization pattern, mapped to CWE-863, because the check does not reliably establish that the actor causing the protection change is permitted to make it.
Potential impact
- An editor may be able to remove edit protection from a page.
- An editor may be able to remove move protection from a page.
- Protected content could be changed or moved by users who should not have that authority.
- Protection settings and audit expectations may become unreliable.
General mitigation guidance
Defensive approaches focus on making protection changes depend on an explicit, correctly scoped authorization decision.
- Verify the permissions of the user initiating the change against the target page and the specific protection action.
- Avoid deriving authorization from revision authorship or other indirect identity signals.
- Treat transcluded content and semantic properties as inputs, not as proof of authority.
- Use secure-by-default protection behavior, preserving existing restrictions when authorization is uncertain.
- Apply least privilege to template editing and protection-management capabilities.
How teams detect issues like this
Review authorization flows that update page restrictions, especially where transclusion, semantic properties, or revision metadata influence the decision.
- Use static analysis and code review to identify checks based on revision authorship rather than the current actor's permissions.
- Test that users with template-editing access cannot weaken protections unless explicitly authorized to do so.
- Enforce policies requiring authorization checks to name the actor, target resource, and requested action.
- Automated security review tools may help flag indirect or inconsistently scoped authorization checks.

