| 제목 | itsmeravitejak Online-Examination-System e6208e630b14657999bbfe4c9912302d2a1e2449 SQL Injection |
|---|
| 설명 | The affected component is the `admin/` directory: `admin/qsdb.php`, `admin/usersdb.php`, `admin/brandb.php`, `admin/topicsdb.php` and `admin/subjectsdb.php`. These endpoints build the flexigrid query by concatenating the unauthenticated POST parameters `query`, `qtype`, `sortname` and `sortorder` directly into the SQL statement:
```php
$where = "";
if ($query) $where = " WHERE $qtype LIKE '%$query%' ";
$sort = "ORDER BY $sortname $sortorder";
$sql = "SELECT q_id,q_text,q_op1,q_op2,q_op3,q_op4,q_ans,top_id FROM questions $where $sort $limit";
```
Because the endpoints perform no authentication (see the separate missing-authentication report), any visitor can exploit the injection. Submitting `qtype=1=1 UNION SELECT username,password,email,userlevel,5,6,7,8 FROM users -- ` makes the application return the `users` table (username, MD5 password hash, email, user level) inside the JSON grid, i.e. unauthenticated in-band extraction of arbitrary database content.
|
|---|
| 원천 | ⚠️ https://github.com/itsmeravitejak/Online-Examination-System/issues/5 |
|---|
| 사용자 | PrivacyFirst (UID 101731) |
|---|
| 제출 | 2026. 09. 29. PM 01:16 (19 날 ago) |
|---|
| 모더레이션 | 2026. 10. 17. AM 11:35 (18 days later) |
|---|
| 상태 | 수락 |
|---|
| VulDB 항목 | 421583 [itsmeravitejak Online-Examination-System 까지 e6208e630b14657999bbfe4c9912302d2a1e2449 subjectsdb.php query/qtype/sortname/sortorder SQL 주입] |
|---|
| 포인트들 | 20 |
|---|