| 제목 | 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. AM 09:38 (1 월 ago) |
|---|
| 모더레이션 | 2026. 09. 12. PM 05:51 (1 month later) |
|---|
| 상태 | 수락 |
|---|
| VulDB 항목 | 403151 [Rizwan17 inventory-management-system 까지 bfe78a330d01bb26b9daec5dc9ecd5c77900e03f Registration register.php createUserAccount usertype 권한 상승] |
|---|
| 포인트들 | 20 |
|---|