| 标题 | 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 09時18分 (18 日前) |
|---|
| 管理 | 2026-10-11 21時43分 (17 days later) |
|---|
| 状态 | 已接受 |
|---|
| VulDB条目 | 416787 [itsmeravitejak Online-Examination-System 直到 e6208e630b14657999bbfe4c9912302d2a1e2449 Session include/session.php Session::checkLogin cookname/cookid 权限提升] |
|---|
| 积分 | 20 |
|---|