ghsa-jwr7-992g-68mh
Vulnerability from github
Published
2025-06-13 14:08
Modified
2025-06-13 14:08
Severity ?
VLAI Severity ?
Summary
starcitizentools/citizen-skin allows stored XSS in preference menu heading messages
Details
Summary
Various preferences messages are inserted into raw HTML, allowing anybody who can edit those messages to insert arbitrary HTML into the DOM.
Details
The innerHtml
of the label div is set to the textContent
of the label, essentially unsanitizing the system messages:
https://github.com/StarCitizenTools/mediawiki-skins-Citizen/blob/407052e7069bdeae927d6f1a2a1c9a45b473bf9a/resources/skins.citizen.preferences/addPortlet.polyfill.js#L18
PoC
- Edit
citizen-feature-custom-font-size-name
(or any other message displayed in a heading in the preferences menu) to<img src="" onerror="alert('citizen-feature-custom-font-size-name')">
(script tags don't work here due to the way the HTML is inserted) - Open the preferences menu
{ "affected": [ { "package": { "ecosystem": "Packagist", "name": "starcitizentools/citizen-skin" }, "ranges": [ { "events": [ { "introduced": "2.13.0" }, { "fixed": "3.3.1" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2025-49577" ], "database_specific": { "cwe_ids": [ "CWE-79" ], "github_reviewed": true, "github_reviewed_at": "2025-06-13T14:08:12Z", "nvd_published_at": "2025-06-12T19:15:20Z", "severity": "MODERATE" }, "details": "### Summary\nVarious preferences messages are inserted into raw HTML, allowing anybody who can edit those messages to insert arbitrary HTML into the DOM.\n\n### Details\nThe `innerHtml` of the label div is set to the `textContent` of the label, essentially unsanitizing the system messages:\nhttps://github.com/StarCitizenTools/mediawiki-skins-Citizen/blob/407052e7069bdeae927d6f1a2a1c9a45b473bf9a/resources/skins.citizen.preferences/addPortlet.polyfill.js#L18\n\n\n### PoC\n1. Edit `citizen-feature-custom-font-size-name` (or any other message displayed in a heading in the preferences menu) to `\u003cimg src=\"\" onerror=\"alert(\u0027citizen-feature-custom-font-size-name\u0027)\"\u003e` (script tags don\u0027t work here due to the way the HTML is inserted)\n2. Open the preferences menu\n", "id": "GHSA-jwr7-992g-68mh", "modified": "2025-06-13T14:08:12Z", "published": "2025-06-13T14:08:12Z", "references": [ { "type": "WEB", "url": "https://github.com/StarCitizenTools/mediawiki-skins-Citizen/security/advisories/GHSA-jwr7-992g-68mh" }, { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-49577" }, { "type": "WEB", "url": "https://github.com/StarCitizenTools/mediawiki-skins-Citizen/commit/93c36ac778397e0e7c46cf7adb1e5d848265f1bd" }, { "type": "WEB", "url": "https://github.com/StarCitizenTools/mediawiki-skins-Citizen/commit/a741639085d70c22a9f49890542a142a223bf981" }, { "type": "PACKAGE", "url": "https://github.com/StarCitizenTools/mediawiki-skins-Citizen" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N", "type": "CVSS_V3" } ], "summary": "starcitizentools/citizen-skin allows stored XSS in preference menu heading messages" }
Loading…
Loading…
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.
Loading…
Loading…