| 제목 | itsmeravitejak Online-Examination-System e6208e630b14657999bbfe4c9912302d2a1e2449 Authentication Bypass Issues |
|---|
| 설명 | The affected component is `include/session.php` (`Session::checkLogin()`), which authenticates users from two attacker-controlled cookies: `cookname` (username) and `cookid` (user id). `checkLogin()` copies the cookie values into the session and calls `MySQLDB::confirmUserID()` in `include/database.php`, which only performs a loose equality comparison (`$userid == $dbarray['userid']`) against the `userid` column. The `userid` value is not a protected per-login secret: every account created through `register.php` is stored with the constant `userid = '0'` (see `MySQLDB::addNewUser()`), and the default administrator row shipped in `dbtables.sql` carries the fixed `userid = d3f0b93bf63fefad081eb1f2cbb59d10`, which is published in the repository. An unauthenticated attacker can therefore forge `Cookie: cookname=admin; cookid=d3f0b93bf63fefad081eb1f2cbb59d10` and is immediately authenticated as the administrator (userlevel 9) without any password, gaining full control of the application, the admin center (`admin/admin.php`, `admin/adminprocess.php`) and all exam data. |
|---|
| 원천 | ⚠️ https://github.com/itsmeravitejak/Online-Examination-System/issues/2 |
|---|
| 사용자 | Arnold1029 (UID 101597) |
|---|
| 제출 | 2026. 09. 25. AM 09:18 (17 날 ago) |
|---|
| 모더레이션 | 2026. 10. 11. PM 09:43 (17 days later) |
|---|
| 상태 | 수락 |
|---|
| VulDB 항목 | 416787 [itsmeravitejak Online-Examination-System 까지 e6208e630b14657999bbfe4c9912302d2a1e2449 Session include/session.php Session::checkLogin cookname/cookid 권한 상승] |
|---|
| 포인트들 | 20 |
|---|