| 제목 | itsmeravitejak Online-Examination-System e6208e630b14657999bbfe4c9912302d2a1e2449 SQL Injection |
|---|
| 설명 | The 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.
|
|---|
| 원천 | ⚠️ https://github.com/itsmeravitejak/Online-Examination-System/issues/3 |
|---|
| 사용자 | Arnold1029 (UID 101597) |
|---|
| 제출 | 2026. 09. 25. AM 09:19 (17 날 ago) |
|---|
| 모더레이션 | 2026. 10. 11. PM 09:44 (17 days later) |
|---|
| 상태 | 수락 |
|---|
| VulDB 항목 | 416788 [itsmeravitejak Online-Examination-System 까지 e6208e630b14657999bbfe4c9912302d2a1e2449 Registration Form include/database.php MySQLDB::addNewUser branch SQL 주입] |
|---|
| 포인트들 | 20 |
|---|