logo

CVE-2021-23814 unisharp/laravel-filemanager

Package

Manager: composer
Name: unisharp/laravel-filemanager
Vulnerable Version: >=0 <2.6.2

Severity

Level: Medium

CVSS v3.1: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L

CVSS v4.0: CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N

EPSS: 0.02089 pctl0.83353

Details

Unrestricted Upload of File with Dangerous Type in unisharp/laravel-filemanager This affects the package unisharp/laravel-filemanager prior to version 2.6.2. The `upload()` function does not sufficiently validate the file type when uploading. An attacker may be able to reproduce the following steps: - Install a package with a web Laravel application. - Navigate to the Upload window - Upload an image file, then capture the request - Edit the request contents with a malicious file (webshell) - Enter the path of file uploaded on URL - Remote Code Execution **Note: Prevention for bad extensions can be done by using a whitelist in the config file(lfm.php). Corresponding document can be found in the [here](https://unisharp.github.io/laravel-filemanager/configfolder-categories).

Metadata

Created: 2022-01-06T21:08:34Z
Modified: 2024-04-22T19:10:22Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/01/GHSA-f8x6-m9f5-ffp8/GHSA-f8x6-m9f5-ffp8.json
CWE IDs: ["CWE-434"]
Alternative ID: GHSA-f8x6-m9f5-ffp8
Finding: F027
Auto approve: 1