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 package | Versions | Reported by |
|---|---|---|
| StarCitizenTools mediawiki-skins-Citizen | >= 2.6.3, < 2.31.0, from 2.6.3 before 2.31.0 | CVE List |
| starcitizentools/citizen-skin (Packagist) | from 2.6.3 before 2.31.0 | GitHub Advisory Database |
| starcitizen.tools citizen | before 2.31.0 | NVD |
All scores
| GitHub_M | 4.8medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N |
| GitHub | 4.6medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N |
| NVD | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Classification
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
- Login
- Go to Special:Preferences
- Set the real name field to a string like
<script>alert("Admin with a propensity for self-XSSes")</script> - Save your settings and use Citizen if it's not being used already
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-47536 changed 2024-09-30 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-62r2-gcxr-426x changed 2024-09-30 | CC-BY-4.0 |
| NVD | CVE-2024-47536 changed 2026-06-17 | Public domain |