Gửi #970270: kishor-23 food-waste-management-system b3a70b2c492dc9904de5be1ad9389bd79b87f82c SQL Injectionthông tin

tiêu đềkishor-23 food-waste-management-system b3a70b2c492dc9904de5be1ad9389bd79b87f82c SQL Injection
Mô tảThe food donation form `fooddonateform.php` escapes most fields with `mysqli_real_escape_string()` but uses the raw `$_POST['image-choice']` value as the `category` column of the `INSERT` statement at `fooddonateform.php:27`. The authentication check at `fooddonateform.php:3-5` performs `header("location: signin.php")` without `exit()`, so the `INSERT` executes even for anonymous requests. An attacker can inject SQL expressions such as `SLEEP()` (time-based blind extraction) or subqueries that copy data from any table into visible `food_donations` columns, allowing unauthenticated data theft and record tampering.
Nguồn⚠️ https://github.com/kishor-23/food-waste-management-system/issues/6
Người dùng
 yukong (UID 101057)
Đệ trình09/09/2026 15:57 (cách đây 2 các tháng)
Kiểm duyệt04/10/2026 10:14 (25 days later)
Trạng tháiđược chấp nhận
Mục VulDB413398 [kishor-23 food-waste-management-system Food Donation Form fooddonateform.php insert image-choice Tiêm SQL]
điểm20

Do you need the next level of professionalism?

Upgrade your account now!