提出 #912565: Rizwan17 inventory-management-system bfe78a330d01bb26b9daec5dc9ecd5c77900e03f Improper Authorization情報

タイトルRizwan17 inventory-management-system bfe78a330d01bb26b9daec5dc9ecd5c77900e03f Improper Authorization
説明The affected components are `register.php` (client form), `includes/process.php` (registration handler), and `includes/user.php` (`createUserAccount`). The registration form exposes a free-choice `usertype` select including `Admin`, and the server stores the submitted value without restriction: ```php // process.php $result = $user->createUserAccount($_POST["username"],$_POST["email"],$_POST["password1"],$_POST["usertype"]); ``` ```php // user.php $pre_stmt = $this->con->prepare("INSERT INTO `user`(`username`, `email`, `password`, `usertype`, ...) VALUES (?,?,?,?,?,?,?)"); $pre_stmt->bind_param("sssssss",$username,$email,$pass_hash,$usertype,$date,$date,$notes); ``` Any unauthenticated visitor can create an Admin account and then log in.
ソース⚠️ http://github.com/Rizwan17/inventory-management-system/issues/16
ユーザー
 sybululu (UID 100270)
送信2026年08月01日 09:38 (1 月 ago)
モデレーション2026年09月12日 17:51 (1 month later)
ステータス承諾済み
VulDBエントリ403151 [Rizwan17 inventory-management-system 迄 bfe78a330d01bb26b9daec5dc9ecd5c77900e03f Registration register.php createUserAccount usertype 特権昇格]
ポイント20

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!