| शीर्षक | AdithyaYelloju Restaurant-Management-System 7f0e7e84255e8fcfd488e83f8f91451bbbff6b9c SQL Injection |
|---|
| विवरण | The affected component is `admin/add_table.php`, an authenticated endpoint that inserts a new row into the `tables` table. The endpoint concatenates user-controlled POST parameters into a SQL `INSERT` statement without escaping:
```php
$sql = "INSERT INTO `tables`(`id`, `name`, `members`, `price`, `status`) VALUES ('','$_POST[table]',$_POST[members],$_POST[price],'available')";
mysqli_query($conn,$sql);
```
Because `$_POST[table]`, `$_POST[members]`, and `$_POST[price]` are interpolated directly into the SQL string, an attacker can close the VALUES clause, append a row of their choosing, and comment out the trailing junk. Combined with the missing role check (CVE-12) the vulnerability is exploitable by any logged-in user and allows tampering with the `tables` table, including inserting rows that override the schema with attacker-controlled columns. |
|---|
| स्रोत | ⚠️ https://github.com/AdithyaYelloju/Restaurant-Management-System/issues/3 |
|---|
| उपयोगकर्ता | mangguoli (UID 100823) |
|---|
| सबमिशन | 26/08/2026 06:24 PM (25 दिन पहले) |
|---|
| संयम | 19/09/2026 11:19 PM (24 days later) |
|---|
| स्थिति | स्वीकृत |
|---|
| VulDB प्रविष्टि | 407971 [AdithyaYelloju Restaurant Management System तक 7f0e7e84255e8fcfd488e83f8f91451bbbff6b9c admin/add_table.php mysqli_query table/members/price SQL इंजेक्शन] |
|---|
| अंक | 20 |
|---|