PT-2022-22430 · Mediawiki+1 · Mediawiki+1
Marlon Starkloff
·
Published
2022-07-02
·
Updated
2024-08-20
·
CVE-2022-34911
CVSS v3.1
6.1
Medium
| Vector | AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Name of the Vulnerable Software and Affected Versions
MediaWiki versions prior to 1.35.7
MediaWiki versions 1.36.x
MediaWiki versions 1.37.x prior to 1.37.3
MediaWiki versions 1.38.x prior to 1.38.1
Description
An issue can occur in configurations that allow a JavaScript payload in a username, leading to XSS. After account creation, the username is not escaped when setting the page title to "Welcome" followed by the username. This happens because
SpecialCreateAccount::successfulAction() calls ::showSuccessPage() with a message as the second parameter, and OutputPage::setPageTitle() uses text().Recommendations
For MediaWiki versions prior to 1.35.7, update to version 1.35.7 or later.
For MediaWiki versions 1.36.x, update to version 1.37.3 or later.
For MediaWiki versions 1.37.x prior to 1.37.3, update to version 1.37.3 or later.
For MediaWiki versions 1.38.x prior to 1.38.1, update to version 1.38.1 or later.
As a temporary workaround, consider restricting the use of JavaScript payloads in usernames to minimize the risk of exploitation.
Fix
XSS
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Mediawiki