जमा करें #955080: AdithyaYelloju Restaurant-Management-System 7f0e7e84255e8fcfd488e83f8f91451bbbff6b9c SQL Injectionजानकारी

शीर्षकAdithyaYelloju Restaurant-Management-System 7f0e7e84255e8fcfd488e83f8f91451bbbff6b9c SQL Injection
विवरणThe affected components are `User/cancel.php` and `User/cancel_t.php`, two endpoints used to cancel an order. Both endpoints take the `id` GET parameter and concatenate it directly into a SQL `DELETE` statement without any escaping or session/ownership check: ```php // User/cancel.php $id=$_GET["id"]; mysqli_query($conn,"delete from order_list where id='$id'"); ``` ```php // User/cancel_t.php $id=$_GET["id"]; mysqli_query($conn,"delete from t_order where id='$id'"); ``` There is no `session_start()`, no `$_SESSION['user']` check, no anti-CSRF token, and no record-ownership verification. An attacker can close the quote and append `OR id>0 -- ` to mass-delete every row in the `order_list` or `t_order` tables. Verified in the lab against `User/cancel_t.php` (deleted all `t_order` rows in one request).
स्रोत⚠️ https://github.com/AdithyaYelloju/Restaurant-Management-System/issues/7
उपयोगकर्ता 100001001X (UID 100909)
सबमिशन01/09/2026 01:28 PM (30 दिन पहले)
संयम30/09/2026 10:09 AM (29 days later)
स्थितिस्वीकृत
VulDB प्रविष्टि411924 [AdithyaYelloju Restaurant-Management-System तक 7f0e7e84255e8fcfd488e83f8f91451bbbff6b9c Order Cancellation User/cancel.php mysqli_query id SQL इंजेक्शन]
अंक20

Do you need the next level of professionalism?

Upgrade your account now!