| शीर्षक | SourceCodester POS Inventory System 1.0 SQL Injection + Unrestricted File Upload |
|---|
| विवरण | A combined SQL Injection and Unrestricted File Upload vulnerability was discovered in the product management functionality of POS Inventory System Using PHP version 1.0.
SQL Injection: Parameters are directly concatenated into INSERT and UPDATE queries without sanitization:
mysqli_query($conn, "insert into product (product_name, categoryid, product_price, product_qty, photo, supplierid)
values ('$name','$category','$price','$qty','$location','$supplier')");
File Upload: The application only validates the file extension string, which can be bypassed using double extensions or uppercase extensions:
if ($fileInfo['extension'] == "jpg" OR $fileInfo['extension'] == "png") {
$newFilename = $fileInfo['filename'] . "_" . time() . "." . $fileInfo['extension'];
move_uploaded_file($_FILES["image"]["tmp_name"], "../upload/" . $newFilename);
This allows an attacker to upload a PHP webshell and execute arbitrary commands on the server. |
|---|
| स्रोत | ⚠️ https://gist.github.com/c4ttr4ck/dd5c36ac4317232be183b7b90139d064 |
|---|
| उपयोगकर्ता | c4ttr4ck (UID 75518) |
|---|
| सबमिशन | 26/04/2026 11:31 PM (1 महीना पहले) |
|---|
| संयम | 24/05/2026 09:45 AM (27 days later) |
|---|
| स्थिति | स्वीकृत |
|---|
| VulDB प्रविष्टि | 365426 [SourceCodester Simple POS and Inventory System 1.0 File Extension /admin/addproduct.php image अधिकार वृद्धि] |
|---|
| अंक | 20 |
|---|