vendor:
Car Rental Management System using PHP/MySQLi with Source Code
by:
Fortunato Lodari
7.5
CVSS
HIGH
SQL Injection + Arbitrary File Upload
89
CWE
Product Name: Car Rental Management System using PHP/MySQLi with Source Code
Affected Version From: 1.0
Affected Version To: 1.0
Patch Exists: NO
Related CWE: N/A
CPE: a:sourcecodester:car_rental_management_system_using_phpmysqli_source_code:1.0
Metasploit:
N/A
Other Scripts:
N/A
Platforms Tested: Debian 10 with apache2
2020
Car Rental Management System 1.0 – SQL injection + Arbitrary File Upload
This script will perform an automatic login using sql injection "'OR 1 = 1 limit 1 #" and will create a new car in the archive, assigning a PHP file instead of the image of the car itself. This car, having "AAAAAAAAAAA" as a brand, will be the first among those displayed and we will use the file just uploaded with a phpshell on the victim system. On the Attacker machine, the user must listen with NC on a port.
Mitigation:
Input validation and sanitization should be used to prevent SQL injection attacks. Additionally, access control should be used to restrict access to the application and its files.