| शीर्षक | CodeAstro QR Code Attendance Management System V1.0 Improper Privilege Management |
|---|
| विवरण | The save() action in app/Controllers/UserController.php implements a role guard that only validates the role_id value submitted in the request, but never checks the current role of the user account being modified. An authenticated user with the low-privileged "Administrator" role can therefore send an update request targeting the existing Super Administrator account (id=1) with role_id=2 and a new password. The server performs an unrestricted row-level UPDATE (UPDATE users SET role_id=?,...,password=? WHERE id=?) and resets the Super Administrator's credentials, effectively handing over control of the highest-privilege account to the attacker. The original Super Administrator permanently loses access, and subsequent audit-log entries appear under the compromised identity. |
|---|
| स्रोत | ⚠️ https://github.com/Witiers/CVEs/issues/4 |
|---|
| उपयोगकर्ता | Witiers (UID 99561) |
|---|
| सबमिशन | 27/08/2026 09:42 AM (24 दिन पहले) |
|---|
| संयम | 19/09/2026 11:47 PM (24 days later) |
|---|
| स्थिति | स्वीकृत |
|---|
| VulDB प्रविष्टि | 407977 [CodeAstro QR Code Attendance Management System 1.0 UserController.php save role_id अधिकार वृद्धि] |
|---|
| अंक | 20 |
|---|