Skip to content

Relative Path Traversal (CWE-23) in chunked uploads in oneup/uploader-bundle

High severity GitHub Reviewed Published Feb 4, 2020 in 1up-lab/OneupUploaderBundle • Updated Feb 7, 2024

Package

composer oneup/uploader-bundle (Composer)

Affected versions

>= 2.0.0, < 2.1.5
>= 1.0.0, < 1.9.3

Patched versions

2.1.5
1.9.3

Description

Impact

The vulnerability was identified in the web service for a chunked file
upload. While the names of the POST parameters vary with the used
frontend, their values are always used in the same way to build a path
where the chunks are stored and assembled temporarily. By not validating
these parameters properly, OneupUploaderBundle is susceptible to a path
traversal vulnerability which can be exploited to upload files to
arbitrary folders on the filesystem. The assembly process can further be
misused with some restrictions to delete and copy files to other
locations.

The vulnerability can be exploited by any users that have legitimate
access to the upload functionality and can lead to arbitrary code
execution, denial of service and disclosure of confidential information.

Patches

Yes, see version 1.9.3 and 2.1.5.

References

https://owasp.org/www-community/attacks/Path_Traversal

Credits:

This security vulnerability was found by Thibaud Kehler of SySS GmbH.
E-Mail: [email protected]

References

@bytehead bytehead published to 1up-lab/OneupUploaderBundle Feb 4, 2020
Reviewed Feb 5, 2020
Published by the National Vulnerability Database Feb 5, 2020
Published to the GitHub Advisory Database Feb 18, 2020
Last updated Feb 7, 2024

Severity

High

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

EPSS score

4.199%
(92nd percentile)

CVE ID

CVE-2020-5237

GHSA ID

GHSA-x8wj-6m73-gfqp

Source code

No known source code
Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.