Lucene search

K
githubGitHub Advisory DatabaseGHSA-V6F4-JWV9-682W
HistoryJan 04, 2024 - 6:30 p.m.

class.upload.php allows cross-site scripting attacks via uploaded files

2024-01-0418:30:21
CWE-20
CWE-434
GitHub Advisory Database
github.com
7
cross-site scripting
uploaded files
in-depth check
stored vulnerability
extension whitelisting
content-type
readme update

CVSS3

5.4

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

REQUIRED

Scope

CHANGED

Confidentiality Impact

LOW

Integrity Impact

LOW

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

AI Score

5.9

Confidence

High

EPSS

0

Percentile

14.0%

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 configurations

Vulners
Node
verotclass.upload.phpRange2.1.6
VendorProductVersionCPE
verotclass.upload.php*cpe:2.3:a:verot:class.upload.php:*:*:*:*:*:*:*:*

CVSS3

5.4

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

REQUIRED

Scope

CHANGED

Confidentiality Impact

LOW

Integrity Impact

LOW

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

AI Score

5.9

Confidence

High

EPSS

0

Percentile

14.0%

Related for GHSA-V6F4-JWV9-682W