CVE-2023-52083: Winter/wn system module Cross-Site Scripting Vulnerability

LOW
Advisory Identifier: GHSA-4wvw-75qh-fqjp
CVSS 2.0
CWE-79
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2023-52083
GHSA Identifier GHSA-4wvw-75qh-fqjp
Severity LOW
CVSS v3.1 Base Score 2.0
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Winter/wn system module
Package Ecosystem Packagist
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required High (PR:H)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability None (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.

winter/wn-system-module fixed: 1.2.4
Upgrade winter/wn-system-module to 1.2.4
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 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

### Impact Users 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. Although 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. These 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. ### Patches This issue has been patched in v1.2.4. ### Workarounds Apply https://github.com/wintercms/winter/commit/2969daeea8dee64d292dbaa3778ea251e2a7e491 and https://github.com/wintercms/winter/commit/2969daeea8dee64d292dbaa3778ea251e2a7e491 manually if unable to upgrade to v1.2.4. ### References Related: https://github.com/wintercms/winter/security/advisories/GHSA-wjw2-4j7j-6gc3

CVE-2023-52083 Affected Winter/wn system module Versions

1 component(s)
Fixed Versions:
1.2.4
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?
CVE-2023-52083 is a security vulnerability in Winter/wn system module involving Winter CMS Stored XSS through privileged upload of Media Manager file followed by renaming under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Winter/wn system module versions are affected?
Affected versions include releases prior to 1.2.4 across affected packages: winter/wn-system-module.
What version fixes CVE-2023-52083?
Upgrading to 1.2.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is winter/wn-system-module affected?
Yes, winter/wn-system-module is affected in releases prior to 1.2.4. Upgrade your dependency to 1.2.4 or later.
What is the CVSS score of CVE-2023-52083?
CVE-2023-52083 has a CVSS v3.1 base score of 2.0 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:L/A:N.
What CWE is associated with CVE-2023-52083?
CVE-2023-52083 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (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.).
How can I check Packagist dependencies for CVE-2023-52083?
Run the dependency tree command: 'inspect dependencies for winter/wn-system-module'. 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-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"
  }
}