| عنوان | 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) |
|---|
| ارسال | 25/09/2026 09:18 AM (17 أيام منذ) |
|---|
| الاعتدال | 11/10/2026 09:43 PM (17 days later) |
|---|
| الحالة | تمت الموافقة |
|---|
| إدخال VulDB | 416787 [itsmeravitejak Online-Examination-System حتى e6208e630b14657999bbfe4c9912302d2a1e2449 Session include/session.php Session::checkLogin cookname/cookid تجاوز الصلاحيات] |
|---|
| النقاط | 20 |
|---|