Lucene search

K
zdtKelvin Yip1337DAY-ID-37493
HistoryMar 16, 2022 - 12:00 a.m.

Laravel Media Library Pro 2.1.6 Shell Upload Vulnerability

2022-03-1600:00:00
Kelvin Yip
0day.today
371
laravel media library pro
vulnerability
arbitrary file upload
unauthenticated
cve-2021-45040
spatie
remote attack
executable files upload
laravel
php 8.0
ubuntu 20.04
laradock

EPSS

0.004

Percentile

74.1%

# Exploit Title: Laravel Media Library Pro <=2.1.6 - Arbitrary File Upload (Unauthenticated)  
# Exploit Author: Kelvin Yip <[emailย protected]>
# Vendor Homepage: https://spatie.be/ 
# Software Link: https://spatie.be/products/media-library-pro
# Version: <=1.17.10 & <=2.1.6
# Tested on: Laradock (PHP 8.0) inside Ubuntu 20.04
# CVE : CVE-2021-45040

#######################################################################################################
Description:

The Spatie media-library-pro library through 1.17.10 & 2.1.6 for Laravel allows remote attackers to upload executable files via the uploads route.

#######################################################################################################
Xploit : Arbitrary File Upload (Unauthenticated)

Default URL: http://server/api/media-library-pro/uploads OR http://server/media-library-pro/uploads

Note: The URL can be changed by developer. 

Upload a PHP webshell or shell file with 3 parameters: (uuid, name and file), the JSON response will contain โ€œoriginal_urlโ€, access the URL in the browser to get the shell access.

#######################################################################################################

EPSS

0.004

Percentile

74.1%

Related for 1337DAY-ID-37493