{"id":21777,"date":"2022-03-15T19:49:38","date_gmt":"2022-03-15T16:49:38","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/166326\/lmlp216-shell.txt"},"modified":"2022-03-16T08:29:51","modified_gmt":"2022-03-16T04:59:51","slug":"laravel-media-library-pro-2-1-6-shell-upload","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/laravel-media-library-pro-2-1-6-shell-upload\/","title":{"rendered":"Laravel Media Library Pro 2.1.6 Shell Upload"},"content":{"rendered":"<p dir=\"ltr\"># Exploit Title: Laravel Media Library Pro &lt;=2.1.6 &#8211; Arbitrary File Upload (Unauthenticated)<br \/>\n# Google Dork: &#8211;<br \/>\n# Date: Mar 13, 2022<br \/>\n# Exploit Author: Kelvin Yip &lt;kelvin@cybersecthreat.com&gt;<br \/>\n# Vendor Homepage: https:\/\/spatie.be\/<br \/>\n# Software Link: https:\/\/spatie.be\/products\/media-library-pro<br \/>\n# Version: &lt;=1.17.10 &amp; &lt;=2.1.6<br \/>\n# Tested on: Laradock (PHP 8.0) inside Ubuntu 20.04<br \/>\n# CVE : CVE-2021-45040<\/p>\n<p dir=\"ltr\">#######################################################################################################<br \/>\nDescription:<\/p>\n<p dir=\"ltr\">The Spatie media-library-pro library through 1.17.10 &amp; 2.1.6 for Laravel allows remote attackers to upload executable files via the uploads route.<\/p>\n<p dir=\"ltr\">#######################################################################################################<br \/>\nXploit : Arbitrary File Upload (Unauthenticated)<\/p>\n<p dir=\"ltr\">Default URL: http:\/\/server\/api\/media-library-pro\/uploads OR http:\/\/server\/media-library-pro\/uploads<\/p>\n<p dir=\"ltr\">Note: The URL can be changed by developer.<\/p>\n<p dir=\"ltr\">Upload a PHP webshell or shell file with 3 parameters: (uuid, name and file), the JSON response will contain \u201coriginal_url\u201d, access the URL in the browser to get the shell access.<\/p>\n<p dir=\"ltr\">#######################################################################################################<br \/>\nAdditional Information for setup, test and solutions: https:\/\/cybersecthreat.com\/2022\/03\/14\/cve-2021-45040\/<br \/>\n#######################################################################################################<\/p>\n","protected":false},"excerpt":{"rendered":"<p># Exploit Title: Laravel Media Library Pro &lt;=2.1.6 &#8211; Arbitrary File Upload (Unauthenticated) # Google Dork: &#8211; # Date: Mar 13, 2022 # Exploit Author: Kelvin Yip &lt;kelvin@cybersecthreat.com&gt; # Vendor Homepage: https:\/\/spatie.be\/ # Software Link: https:\/\/spatie.be\/products\/media-library-pro # Version: &lt;=1.17.10 &amp; &lt;=2.1.6 # Tested on: Laradock (PHP 8.0) inside Ubuntu 20.04 # CVE : CVE-2021-45040 ####################################################################################################### &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-21777","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/21777","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=21777"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/21777\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=21777"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=21777"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=21777"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}