提交 #911127: Rizwan17 inventory-management-system bfe78a330d01bb26b9daec5dc9ecd5c77900e03f SQL Injection信息

标题Rizwan17 inventory-management-system bfe78a330d01bb26b9daec5dc9ecd5c77900e03f SQL Injection
描述The affected component is `includes/manage.php` method `update_record()`, invoked from `includes/process.php` via unauthenticated handlers `update_category`, `update_brand`, and `update_product`. User-controlled table keys and values are concatenated into a raw UPDATE statement and executed with `mysqli_query()`: ```php foreach ($where as $key => $value) { $condition .= $key . "='" . $value . "' AND "; } foreach ($fields as $key => $value) { $sql .= $key . "='".$value."', "; } $sql = "UPDATE ".$table." SET ".$sql." WHERE ".$condition; mysqli_query($this->con,$sql); ``` An unauthenticated attacker can inject SQL through POST fields such as `update_category` / `cid` to rewrite WHERE clauses, modify arbitrary rows, or escalate to broader database compromise.
来源⚠️ https://github.com/Rizwan17/inventory-management-system/issues/9
用户
 RongJinHui (UID 100227)
提交2026-07-30 18時06分 (2 月前)
管理2026-09-09 18時12分 (1 month later)
状态已接受
VulDB条目401808 [Rizwan17 inventory-management-system 直到 bfe78a330d01bb26b9daec5dc9ecd5c77900e03f includes/manage.php update_record update_category/cid/update_brand/update_product SQL注入]
积分20

Might our Artificial Intelligence support you?

Check our Alexa App!