Submit #999471: itsmeravitejak Online-Examination-System e6208e630b14657999bbfe4c9912302d2a1e2449 Authentication Bypass Issuesinfo

Titleitsmeravitejak Online-Examination-System e6208e630b14657999bbfe4c9912302d2a1e2449 Authentication Bypass Issues
DescriptionThe 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.
Source⚠️ https://github.com/itsmeravitejak/Online-Examination-System/issues/2
User Arnold1029 (UID 101597)
Submission09/25/2026 09:18 (17 days ago)
Moderation10/11/2026 21:43 (17 days later)
StatusAccepted
VulDB entry416787 [itsmeravitejak Online-Examination-System up to e6208e630b14657999bbfe4c9912302d2a1e2449 Session include/session.php Session::checkLogin cookname/cookid comparison]
Points20

Interested in the pricing of exploits?

See the underground prices here!