Vulnerability · Published Jan 4, 2024 · Assigned by CERT-PL

CVE-2023-6551Stored XSS in class.upload.php

Medium 5.4

In plain English

A medium-severity unrestricted file upload in class.upload.php from class.upload.php. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 38% of all known vulnerabilities).

Severity (CVSS 3.1)5.4Medium
Exploit odds (30 days)0.4%top 62.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

As a simple library, class.upload.php does not perform an in-depth check on uploaded files, allowing a stored XSS vulnerability when the default configuration is used. Developers must be aware of that fact and use extension whitelisting accompanied by forcing the server to always provide content-type based on the file extension. The README has been updated to include these guidelines.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Packagistverot/class.upload.phpno fix listedGHSA-v6f4-jwv9-682w

Affected products (as reported)

VendorProductVersions
class.upload.php class.upload.php 0 – through *

Weakness: CWE-434 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

References