提出 #970271: kishor-23 food-waste-management-system b3a70b2c492dc9904de5be1ad9389bd79b87f82c SQL Injection情報

タイトルkishor-23 food-waste-management-system b3a70b2c492dc9904de5be1ad9389bd79b87f82c SQL Injection
説明The location filter on the admin donation page `admin/donate.php` concatenates `$_POST['location']` raw into `SELECT * FROM food_donations WHERE location='$location'` at `admin/donate.php:141`. The query result is printed directly into the response table, so an attacker can append a `UNION SELECT` and read arbitrary database content in the page body. Although the page starts with an admin session check, the redirect is issued without `exit()` (`admin/donate.php:8`), and the block never verifies the role, so the endpoint is fully exploitable by anonymous users. In testing, `database()`, `user()` (MySQL `root@localhost`) and `@@version` were all retrieved without any session.
ソース⚠️ https://github.com/kishor-23/food-waste-management-system/issues/7
ユーザー
 xbjds (UID 101126)
送信2026年09月09日 15:58 (25 日 ago)
モデレーション2026年10月04日 10:14 (25 days later)
ステータス承諾済み
VulDBエントリ413399 [kishor-23 food-waste-management-system admin/donate.php location SQLインジェクション]
ポイント20

Do you want to use VulDB in your project?

Use the official API to access entries easily!