| शीर्षक | SourceCodester POS Inventory System 1.0 SQL Injection (Error-Based / UNION-Based) |
|---|
| विवरण | A SQL Injection vulnerability via unsanitized GET parameter was discovered in the delete functionality of POS Inventory System Using PHP version 1.0.
The application retrieves the id value directly from $_GET['id'] and concatenates it into SQL queries without sanitization, type casting, or the use of prepared statements. This occurs in multiple files
deleteproduct.php:
$pid = $_GET['id'];
$a = mysqli_query($conn, "select * from product where productid='$pid'");
mysqli_query($conn, "delete from product where productid='$pid'");
deletecustomer.php:
$id = $_GET['id'];
mysqli_query($conn, "delete from user where userid='$id'");
mysqli_query($conn, "delete from customer where userid='$id'");
The vulnerability allows any authenticated user to delete arbitrary records from the database or exfiltrate sensitive data via UNION-based injection. |
|---|
| स्रोत | ⚠️ https://gist.github.com/c4ttr4ck/5d05aaee5b43f259ebe8bb8bce5c658f |
|---|
| उपयोगकर्ता | c4ttr4ck (UID 75518) |
|---|
| सबमिशन | 26/04/2026 11:30 PM (1 महीना पहले) |
|---|
| संयम | 24/05/2026 09:45 AM (27 days later) |
|---|
| स्थिति | स्वीकृत |
|---|
| VulDB प्रविष्टि | 365425 [SourceCodester Simple POS and Inventory System 1.0 GET Parameter /admin/deleteproduct.php delete पहचान SQL इंजेक्शन] |
|---|
| अंक | 20 |
|---|