Summary
Semantic MediaWiki has a missing authorization check that can let editors without the edit-protection right mark pages as protected. When the permission hook processes that annotation, other editors and administrators may be blocked from editing, moving, or deleting the affected pages.
Affected context
The issue affects Semantic MediaWiki deployments in the reported version range, from 2.5.0 to versions before 7.4.1. It can arise when page annotations or widely transcluded templates set the edit-protection property, and the TitleQuickPermissions hook uses that property to restrict page actions without verifying that the user had permission to set it.
Exploit preconditions
- Attack surface: Semantic MediaWiki pages and templates that support the Is edit protected annotation
- Required access: The ability to edit a page or a widely transcluded template; the attacker does not need the edit-protection right
- Trigger point: The TitleQuickPermissions hook evaluates the edit-protection annotation when users attempt to edit, move, or delete a page
- Why exploitation is possible: The annotation can influence authorization decisions without a corresponding check that the user is allowed to apply protection
Why this happens
The underlying issue is a missing authorization check, mapped to CWE-862. User-editable semantic data is allowed to affect access-control decisions, but the application does not adequately verify the editor's authority before treating the page as protected. An annotation can therefore act like a permission change rather than ordinary page content.
Potential impact
- Editors and administrators may be unable to edit, move, or delete affected pages
- A protection annotation in a widely transcluded template could affect multiple pages
- Page-management disruption may persist until the annotation or template content is corrected
- Unauthorized changes to page protection state could undermine administrative workflows
General mitigation guidance
Defensive approaches center on ensuring that authorization state cannot be changed by users who lack the corresponding privilege.
- Check the actor's protection-management permissions before accepting or applying protection annotations
- Keep access-control decisions separate from ordinary user-editable content where practical
- Treat annotations and transcluded template content as untrusted when deriving permissions
- Apply least privilege to editing roles and provide a controlled administrative process for protection changes
- Validate authorization consistently at the point where edit, move, and delete decisions are enforced
How teams detect issues like this
- Review code paths where annotations or template-derived values influence authorization decisions
- Use static analysis or code review checks to identify permission-sensitive operations without nearby authorization checks
- Audit changes to protection-related annotations and templates, especially those with broad transclusion
- Enforce policy checks that require privileged authorization for changes to page-protection state

