| 제목 | onetwothreeneth HospitalManagementSystem 9ef91ed6007314b6473110ed699dff76d158f61d Missing Authorization |
|---|
| 설명 | Affected: `php/controller.php` handlers `update_subaccount` (lines 233-260), `archive_user` (221-225), `add_account` (203-219), and pages `accounts.php`, `new_account.php`, `edit_accounts.php` (the pages that reach them). These account-administration handlers are gated only by the ineffective client-side menu hiding in `bones/a_header.php` (lines 127 & 133: `display:none` for non-admins) and never perform any server-side role check. `update_subaccount` accepts an arbitrary `user_id` (filters only SQL-escapes it): `udi("$u users set name='$name',user='$user',pass='$pass' where user_id='$user_id'")`. Any session - even an anonymous request (the session guard does not exit, see the authentication finding) - can reset the password of the built-in admin (user_id=1) and sign in as admin, taking over the whole application. |
|---|
| 원천 | ⚠️ https://github.com/onetwothreeneth/HospitalManagementSystem/issues/7 |
|---|
| 사용자 | Cevz68 (UID 101220) |
|---|
| 제출 | 2026. 09. 14. PM 04:52 (22 날 ago) |
|---|
| 모더레이션 | 2026. 10. 05. PM 12:15 (21 days later) |
|---|
| 상태 | 수락 |
|---|
| VulDB 항목 | 413576 [onetwothreeneth HospitalManagementSystem 까지 9ef91ed6007314b6473110ed699dff76d158f61d Account Administration php/controller.php update_subaccount user_id 권한 상승] |
|---|
| 포인트들 | 20 |
|---|