CVE-2023-52083: Winter/wn system module Cross-Site Scripting Vulnerability
LOWCVE-2023-52083 is a LOW (CVSS 2.0) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Winter/wn system module libraries in the Packagist ecosystem. The issue involves winter cms stored xss through privileged upload of media manager file followed by renaming. Remediation is available by upgrading affected packages to version 1.2.4.
CVE-2023-52083 at a Glance
Security Impact
CVSS: 2.0
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:L/A:N).
How to Fix CVE-2023-52083
To remediate this vulnerability, upgrade all affected Winter/wn system module dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade winter/wn-system-module to 1.2.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for winter/wn-system-module
How to Check if You Are Affected
To determine whether your application is affected by CVE-2023-52083, inspect your project dependencies for Winter/wn system module:
inspect dependencies for winter/wn-system-module
Analyze the terminal output to locate any version of Winter/wn system module in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.2.4), 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-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Winter/wn system module, 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
CVE-2023-52083 Affected Winter/wn system module Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
winter/wn-system-module
|
Packagist |
< 1.2.4
|
1.2.4
|
References
Frequently Asked Questions
What is CVE-2023-52083?
Which Winter/wn system module versions are affected?
What version fixes CVE-2023-52083?
Is winter/wn-system-module affected?
What is the CVSS score of CVE-2023-52083?
What CWE is associated with CVE-2023-52083?
How can I check Packagist dependencies for CVE-2023-52083?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-4wvw-75qh-fqjp",
"modified" : "2024-01-02T14:10:38Z",
"published" : "2023-12-28T22:32:10Z",
"aliases" : [ "CVE-2023-52083" ],
"summary" : "Winter CMS Stored XSS through privileged upload of Media Manager file followed by renaming",
"details" : "### Impact\n\nUsers with the `media.manage_media` permission can upload files to the Media Manager and rename them after uploading. Previously, media manager files were only sanitized on upload, not on renaming, which could have allowed a stored XSS attack.\n\nAlthough this was a security issue, it's important to note that its severity is low. To exploit the vulnerability, an attacker would already need to have trusted permissions in the Winter CMS backend. This means they would already have extensive access and control within the system. Additionally, to execute the XSS, the attacker would need to convince the victim to directly visit the URL of the maliciously uploaded SVG, and the application would have to be using local storage where uploaded files are served under the same domain as the application itself instead of a CDN. This is because all SVGs in Winter CMS are rendered through an img tag, which prevents any payloads from being executed directly.\n\nThese two factors significantly limit the potential harm of this vulnerability. That being said, all users are advised to update to the latest version (1.2.4) to ensure their systems remain secure.\n\n### Patches\nThis issue has been patched in v1.2.4.\n\n### Workarounds\nApply https://github.com/wintercms/winter/commit/2969daeea8dee64d292dbaa3778ea251e2a7e491 and https://github.com/wintercms/winter/commit/2969daeea8dee64d292dbaa3778ea251e2a7e491 manually if unable to upgrade to v1.2.4.\n\n### References\nRelated: https://github.com/wintercms/winter/security/advisories/GHSA-wjw2-4j7j-6gc3\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "winter/wn-system-module"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.2.4"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/wintercms/winter/security/advisories/GHSA-4wvw-75qh-fqjp"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-52083"
}, {
"type" : "WEB",
"url" : "https://github.com/wintercms/winter/commit/2969daeea8dee64d292dbaa3778ea251e2a7e491"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/wintercms/winter"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2023-12-28T22:32:10Z",
"nvd_published_at" : "2023-12-28T23:15:43Z"
}
}