ADVISORIES

GitHub Advisory Database

GHSA-62r2-gcxr-426x

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

Moderate CVE-2024-47536

Details

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

![](https://github.com/user-attachments/assets/22adbb70-fcd7-4f81-8e53-1f5f3a730270)

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.

Affected packages

EcosystemPackageAffected versions
Packagiststarcitizentools/citizen-skin
From 2.6.3 before 2.31.0 (fixed in 2.31.0)

References