Unrestricted Upload of File with Dangerous Type in unisharp/laravel-filemanager
Moderate severity
GitHub Reviewed
Published
Jan 6, 2022
to the GitHub Advisory Database
•
Updated Apr 22, 2024
Description
Published by the National Vulnerability Database
Dec 17, 2021
Reviewed
Jan 4, 2022
Published to the GitHub Advisory Database
Jan 6, 2022
Last updated
Apr 22, 2024
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:
**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.
References