Soumettre #999472: itsmeravitejak Online-Examination-System e6208e630b14657999bbfe4c9912302d2a1e2449 SQL Injectioninformation

Titreitsmeravitejak Online-Examination-System e6208e630b14657999bbfe4c9912302d2a1e2449 SQL Injection
DescriptionThe affected component is `include/session.php` (`Session::register()`) and `include/database.php` (`MySQLDB::addNewUser()`), reachable unauthenticated from `process.php` (`procRegister()`) and `register.php`. The registration form validates the username, password and email, but the `branch` field is concatenated into the `INSERT` statement without any escaping or casting: ```php $q = "INSERT INTO ".TBL_USERS." VALUES ('$username', '$password', '0', $ulevel, '$email', $time, $branch)"; ``` The `branch` value is also placed outside quotes, so an attacker can close the `VALUES` list and append arbitrary rows. By submitting `branch=1),("hacker5","5f4dcc3b5aa765d61d8327deb882cf99","0",9,"[email protected]",0,1)#` during a normal registration, a second account with `userlevel = 9` (the `ADMIN_LEVEL` constant) is inserted into the `users` table. The only obstacle is the 4-character Securimage captcha, which is trivial to solve manually or with OCR and does not prevent the injection. The injected administrator can then be used through the cookie-based session of CVE-01 or a normal login, leading to full application compromise.
La source⚠️ https://github.com/itsmeravitejak/Online-Examination-System/issues/3
Utilisateur Arnold1029 (UID 101597)
Soumission25/09/2026 09:19 (il y a 17 jours)
Modérer11/10/2026 21:44 (17 days later)
StatutAccepté
Entrée VulDB416788 [itsmeravitejak Online-Examination-System Registration Form include/database.php MySQLDB::addNewUser branch injection SQL]
Points20

Do you know our Splunk app?

Download it now for free!