Enviar #999471: itsmeravitejak Online-Examination-System e6208e630b14657999bbfe4c9912302d2a1e2449 Authentication Bypass Issuesinformación

Títuloitsmeravitejak Online-Examination-System e6208e630b14657999bbfe4c9912302d2a1e2449 Authentication Bypass Issues
DescripciónThe 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.
Fuente⚠️ https://github.com/itsmeravitejak/Online-Examination-System/issues/2
Usuario Arnold1029 (UID 101597)
Sumisión2026-09-25 09:18 (hace 17 días)
Moderación2026-10-11 21:43 (17 days later)
EstadoAceptado
Entrada de VulDB416787 [itsmeravitejak Online-Examination-System hasta e6208e630b14657999bbfe4c9912302d2a1e2449 Session include/session.php Session::checkLogin cookname/cookid escalada de privilegios]
Puntos20

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!