| Titolo | amirhamza05 Student-Management-System 1.0 IDOR |
|---|
| Descrizione | Two related authorization flaws—an Insecure Direct Object Reference (IDOR) and a Mass Assignment vulnerability—exist in the user profile functionality. The server accepts the target user ID directly from the client and accepts arbitrary field/value pairs from the POST body, without verifying that the target user matches the authenticated session user and without restricting which database columns can be updated.
The vulnerable flow includes:
- `page_action/user/user_profile.php:53-60` — password change handler reads `pass_user` from POST and updates the target user without old-password verification or ownership check
- `page_action/user/user_profile.php:76-80` — profile update handler passes the entire `update_profile_info` POST array to `sql_action("user","update",$info,...)`
- `page_action/user/user_profile.php:95-105` — account status handler allows deactivating any account, including admin
- `page_action/user/user_profile.php:118-127` — role handler updates `permit` with only a `max()` mitigation
- `page_action/user/user_profile.php:46-51` — user lookup handler returns the full record for any supplied `id`
- `config/connect.php:133-147` — `Update_sql()` concatenates column names and values without a whitelist
Because the application trusts client-supplied identifiers and column names, an authenticated low-privilege user can reset another user's password, take over accounts, escalate their own privileges to super administrator, and deactivate arbitrary accounts. |
|---|
| Fonte | ⚠️ https://github.com/amirhamza05/Student-Management-System/issues/74 |
|---|
| Utente | dirdir (UID 102410) |
|---|
| Sottomissione | 24/10/2026 11:36 (1 mese fa) |
|---|
| Moderazione | 23/11/2026 19:31 (1 month later) |
|---|
| Stato | Accettato |
|---|
| Voce VulDB | 442502 [amirhamza05 Student-Management-System fino a 449397e35d42e3779f14f0bfc654ab307103f7e3 User Profile user_profile.php escalationi di privilegi] |
|---|
| Punti | 20 |
|---|