CVE-2024-47536: Starcitizentools/citizen skin Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-62r2-gcxr-426x
CVSS 4.6
CWE-80 CWE-79
Published
Advisory Summary

CVE-2024-47536 is a MODERATE (CVSS 4.6) cross-site scripting vulnerability (CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)) affecting Starcitizentools/citizen skin libraries in the Packagist ecosystem. The issue involves starcitizentools/citizen-skin vulnerable to stored, self-xss in the "real name" field. Remediation is available by upgrading affected packages to version 2.31.0.

CVE-2024-47536 at a Glance

CVE Identifier CVE-2024-47536
GHSA Identifier GHSA-62r2-gcxr-426x
Severity MODERATE
CVSS v3.1 Base Score 4.6
CWE Classification CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)
Affected Product Starcitizentools/citizen skin
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 4.6

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2024-47536

To remediate this vulnerability, upgrade all affected Starcitizentools/citizen skin dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

starcitizentools/citizen-skin fixed: 2.31.0
Upgrade starcitizentools/citizen-skin to 2.31.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for starcitizentools/citizen-skin

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-47536, inspect your project dependencies for Starcitizentools/citizen skin:

inspect dependencies for starcitizentools/citizen-skin

Analyze the terminal output to locate any version of Starcitizentools/citizen skin in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.31.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS), where the product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special characters such as "<", ">", and "&" that could be interpreted as web-scripting elements when they are sent to a downstream component that processes web pages. In Starcitizentools/citizen skin, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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 ![](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.

CVE-2024-47536 Affected Starcitizentools/citizen skin Versions

1 component(s)
Fixed Versions:
2.31.0
Product / Package Ecosystem Affected Versions Fixed Version
starcitizentools/citizen-skin
Packagist
≥ 2.6.3
< 2.31.0
2.31.0

References

Frequently Asked Questions

What is CVE-2024-47536?
CVE-2024-47536 is a security vulnerability in Starcitizentools/citizen skin involving starcitizentools/citizen-skin vulnerable to stored, self-XSS in the "real name" field under CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS).
Which Starcitizentools/citizen skin versions are affected?
Affected versions include releases prior to 2.31.0 across affected packages: starcitizentools/citizen-skin.
What version fixes CVE-2024-47536?
Upgrading to 2.31.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is starcitizentools/citizen-skin affected?
Yes, starcitizentools/citizen-skin is affected in releases prior to 2.31.0. Upgrade your dependency to 2.31.0 or later.
What is the CVSS score of CVE-2024-47536?
CVE-2024-47536 has a CVSS v3.1 base score of 4.6 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2024-47536?
CVE-2024-47536 is classified under CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) (The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special characters such as "<", ">", and "&" that could be interpreted as web-scripting elements when they are sent to a downstream component that processes web pages.).
How can I check Packagist dependencies for CVE-2024-47536?
Run the dependency tree command: 'inspect dependencies for starcitizentools/citizen-skin'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-62r2-gcxr-426x",
  "modified" : "2024-09-30T20:11:49Z",
  "published" : "2024-09-30T17:48:33Z",
  "aliases" : [ "CVE-2024-47536" ],
  "summary" : " starcitizentools/citizen-skin vulnerable to stored, self-XSS in the \"real name\" field",
  "details" : "### Summary\nA user with the `editmyprivateinfo` right or who can otherwise change their name can XSS themselves by setting their \"real name\" to an XSS payload.\n\n### Details\nHere's the offending line:\nhttps://github.com/StarCitizenTools/mediawiki-skins-Citizen/blob/d45c3d69f30863f622f16eb40dd41d3ca943454a/includes/Components/CitizenComponentUserInfo.php#L137\n\nThis was introduced in 717d16af35b10dab04d434aefddbf991fc8c168c\n\n### PoC\n1. Login\n2. Go to Special:Preferences\n3. Set the real name field to a string like `<script>alert(\"Admin with a propensity for self-XSSes\")</script>`\n4. Save your settings and use Citizen if it's not being used already\n\n![](https://github.com/user-attachments/assets/22adbb70-fcd7-4f81-8e53-1f5f3a730270)\n\n### Impact\nAny 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. ",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "starcitizentools/citizen-skin"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.6.3"
      }, {
        "fixed" : "2.31.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/StarCitizenTools/mediawiki-skins-Citizen/security/advisories/GHSA-62r2-gcxr-426x"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-47536"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/StarCitizenTools/mediawiki-skins-Citizen/commit/717d16af35b10dab04d434aefddbf991fc8c168c"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/StarCitizenTools/mediawiki-skins-Citizen/commit/86da3e07718c8d8da6f4310386fef85599606f9b"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/StarCitizenTools/mediawiki-skins-Citizen"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/StarCitizenTools/mediawiki-skins-Citizen/blob/d45c3d69f30863f622f16eb40dd41d3ca943454a/includes/Components/CitizenComponentUserInfo.php#L137"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79", "CWE-80" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-09-30T17:48:33Z",
    "nvd_published_at" : "2024-09-30T17:15:04Z"
  }
}