| Título | Soarkey StudentManagement e08f7f1d5015af407aa4cca0ada3dea189b4937e SQL Injection |
|---|
| Descrição | The affected request path is the `course_ranking` action in `code/src/service/AdminDao.java` at lines 499-525, which forwards the untrusted `cno` parameter into `code/src/dao/CourseDao.java`. `CourseDao.course_ranking(String cno)` at lines 151-156 builds the SQL statement by concatenating `cno` directly into `... and cno = '"+cno+"' order by grade desc;` before execution. Because no parameter binding or validation is applied, an attacker can inject arbitrary SQL conditions and UNION clauses through `cno`. This allows retrieval of unintended rows and exfiltration of data from other tables such as `user`, including usernames, plaintext passwords, and privilege levels. |
|---|
| Fonte | ⚠️ https://github.com/Soarkey/StudentManagement/issues/33 |
|---|
| Utilizador | soulinda (UID 99812) |
|---|
| Submissão | 16/07/2026 18h37 (há 1 mês) |
|---|
| Moderação | 30/08/2026 10h00 (1 month later) |
|---|
| Estado | Aceite |
|---|
| Entrada VulDB | 397120 [Soarkey StudentManagement/学生信息管理系统 até e08f7f1d5015af407aa4cca0ada3dea189b4937e CourseDao.java CourseDao.course_ranking cno Injeção SQL] |
|---|
| Pontos | 20 |
|---|