CVE-2022-28205
📋 TL;DR
A critical vulnerability in MediaWiki's CentralAuth extension allows improper handling of group expiration timestamps (TTL), potentially enabling privilege escalation. This affects MediaWiki installations with CentralAuth extension enabled. Attackers could gain unauthorized administrative access to the wiki system.
💻 Affected Systems
- MediaWiki with CentralAuth extension
📦 What is this software?
Mediawiki by Mediawiki
⚠️ Risk & Real-World Impact
Worst Case
Complete system compromise through privilege escalation to administrator level, allowing data manipulation, content deletion, or installation of backdoors.
Likely Case
Unauthorized access to sensitive wiki content, user data exposure, and privilege escalation to edit-protected pages.
If Mitigated
Limited impact with proper access controls and monitoring, but still represents authentication bypass risk.
🎯 Exploit Status
Requires some authentication access to exploit the TTL handling issue. No public exploit code available at time of analysis.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: MediaWiki 1.37.2 or later
Vendor Advisory: https://phabricator.wikimedia.org/T302248
Restart Required: No
Instructions:
1. Update MediaWiki to version 1.37.2 or later. 2. Update CentralAuth extension if using separate extension installation. 3. Clear MediaWiki cache. 4. Verify group permissions are functioning correctly.
🔧 Temporary Workarounds
Disable CentralAuth Extension
allTemporarily disable CentralAuth extension if not essential for operations
Edit LocalSettings.php and comment out or remove: wfLoadExtension('CentralAuth');
Restrict Group Management
allTighten group permission controls and audit group membership changes
Review and restrict $wgGroupPermissions settings in LocalSettings.php
🧯 If You Can't Patch
- Implement strict access controls and monitor group permission changes
- Deploy web application firewall rules to detect authentication anomalies
🔍 How to Verify
Check if Vulnerable:
Check MediaWiki version with: php includes/DefaultSettings.php | grep wgVersion. If version is 1.37.1 or earlier and CentralAuth is enabled, system is vulnerable.
Check Version:
php includes/DefaultSettings.php | grep wgVersion
Verify Fix Applied:
Verify MediaWiki version is 1.37.2 or later and test group permission functionality.
📡 Detection & Monitoring
Log Indicators:
- Unexpected group permission changes
- Authentication events with unusual TTL values
- CentralAuth extension errors
Network Indicators:
- Unusual authentication requests to CentralAuth endpoints
SIEM Query:
source="mediawiki.log" AND ("CentralAuth" OR "group change" OR "permission escalation")
🔗 References
- https://gerrit.wikimedia.org/r/q/Ic6ba1a37b78df5b342ceeba4c1493dbde583b81f
- https://phabricator.wikimedia.org/T302248
- https://security.gentoo.org/glsa/202305-24
- https://gerrit.wikimedia.org/r/q/Ic6ba1a37b78df5b342ceeba4c1493dbde583b81f
- https://phabricator.wikimedia.org/T302248
- https://security.gentoo.org/glsa/202305-24