Advertisement
b3gund4L

Laravel Media Library Pro 2.1.6 Shell Upload Vulnerability

Jul 21st, 2022
3,199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.25 KB | None | 0 0
  1. # Exploit Title: Laravel Media Library Pro <=2.1.6 - Arbitrary File Upload (Unauthenticated)  
  2. # Exploit Author: Kelvin Yip <kelvin@cybersecthreat.com>
  3. # Vendor Homepage: https://spatie.be/
  4. # Software Link: https://spatie.be/products/media-library-pro
  5. # Version: <=1.17.10 & <=2.1.6
  6. # Tested on: Laradock (PHP 8.0) inside Ubuntu 20.04
  7. # CVE : CVE-2021-45040
  8.  
  9. #######################################################################################################
  10. Description:
  11.  
  12. 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.
  13.  
  14. #######################################################################################################
  15. Xploit : Arbitrary File Upload (Unauthenticated)
  16.  
  17. Default URL: http://server/api/media-library-pro/uploads OR http://server/media-library-pro/uploads
  18.  
  19. Note: The URL can be changed by developer.
  20.  
  21. 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.
  22.  
  23. #######################################################################################################
  24.  
  25. #  0day.today [2022-07-21]  #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement