Skip to content

Impersonation of wiki requester

Moderate
redbluegreenhat published GHSA-89fx-77w7-rc64 May 12, 2024

Package

CreateWiki (MediaWiki)

Affected versions

<02e0f298f8d35155c39aa74193cb7b867432c5b8

Patched versions

02e0f298f8d35155c39aa74193cb7b867432c5b8

Description

Impact

It is possible for users to be considered as the requester of a specific wiki request if their local user ID on any wiki in a wiki farm matches the local ID of the requester at the wiki where the wiki request was made.

This allows them to go to that request entry's on Special:RequestWikiQueue on the wiki where their local user ID matches and take any actions that the wiki requester is allowed to take from there.

Patches

02e0f29

Important note about the fix: This vulnerability has been fixed by disabling access to the REST API and special pages outside of the wiki configured as the "global wiki" in $wgCreateWikiGlobalWiki in your MediaWiki settings.

Workarounds

It is possible to disable the special pages outside of your global wiki by doing something similar to miraheze/mw-config@e566499. You must adapt that to your setup.

As for the REST API, before the fix, there wasn't any REST endpoint that allowed to make writes. Regardless, it is possible to also disable it outside of the global wiki by using $wgCreateWikiDisableRESTAPI and $wgConf in the configuration for your wiki farm. See miraheze/mw-config@1798e53

References

Severity

Moderate

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

CVE ID

CVE-2024-34701

Weaknesses

No CWEs

Credits