Lucene search

K
osvGoogleOSV:GHSA-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
Google
osv.dev
14
cross-site scripting
uploaded files
in-depth check
stored xss 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.

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 OSV:GHSA-V6F4-JWV9-682W