CVE-2024-47536
JSON

4.8medium

starcitizentools/citizen-skin vulnerable to stored, self-XSS in the "real name" field

Severity
4.8medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.65% (higher than 46% of CVEs)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-62r2-gcxr-426x

Description

Citizen is a MediaWiki skin that makes extensions part of the cohesive experience. A user with the editmyprivateinfo right or who can otherwise change their name can XSS themselves by setting their "real name" to an XSS payload. This vulnerability is fixed in 2.31.0.

Affected

Product or packageVersionsReported by
StarCitizenTools mediawiki-skins-Citizen>= 2.6.3, < 2.31.0, from 2.6.3 before 2.31.0CVE List
starcitizentools/citizen-skin (Packagist)from 2.6.3 before 2.31.0GitHub Advisory Database
starcitizen.tools citizenbefore 2.31.0NVD

All scores

GitHub_M4.8medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
GitHub4.6medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
NVD5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Classification

CWE-79CWE-80

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

Citizen is a MediaWiki skin that makes extensions part of the cohesive experience. A user with the editmyprivateinfo right or who can otherwise change their name can XSS themselves by setting their "real name" to an XSS payload. This vulnerability is fixed in 2.31.0.

GitHub Advisory Database
Summary

A user with the editmyprivateinfo right or who can otherwise change their name can XSS themselves by setting their "real name" to an XSS payload.

Details

Here's the offending line: https://github.com/StarCitizenTools/mediawiki-skins-Citizen/blob/d45c3d69f30863f622f16eb40dd41d3ca943454a/includes/Components/CitizenComponentUserInfo.php#L137

This was introduced in 717d16af35b10dab04d434aefddbf991fc8c168c

PoC
  1. Login
  2. Go to Special:Preferences
  3. Set the real name field to a string like <script>alert("Admin with a propensity for self-XSSes")</script>
  4. Save your settings and use Citizen if it's not being used already

image

Impact

Any user who can change their name (whether it's through the editmyprivateinfo right or through other means) can add XSS payloads that trigger for themselves only.

NVD (es)

Citizen es una interfaz de MediaWiki que hace que las extensiones formen parte de la experiencia cohesiva. Un usuario con el derecho editmyprivateinfo o que pueda cambiar su nombre de otra manera puede realizar un XSS a sí mismo configurando su "nombre real" en un payload XSS. Esta vulnerabilidad se corrigió en la versión 2.31.0.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-47536 changed 2024-09-30CVE Terms of Use
GitHub Advisory DatabaseGHSA-62r2-gcxr-426x changed 2024-09-30CC-BY-4.0
NVDCVE-2024-47536 changed 2026-06-17Public domain