| Title | JQP JQP-Admin master SQL Injection |
|---|
| Description | JQP-Admin Low-Code Development Platform (master branch) contains a SQL injection vulnerability in the table column sorting function of multiple list pages, such as "System Management -> Menu Management". The core query API POST /admin/page/crudQuery/{pageCode} accepts the user-controllable orderDir parameter. In PageServiceImpl.java (around lines 193-196), the code fails to perform strict whitelist validation or enum restriction on this parameter and directly concatenates it into the ORDER BY clause of the SQL statement. The resulting query is executed as-is by jdbcTemplate.query in MysqlJdbcDaoImpl.java (around line 107). Due to the lack of sanitization, an attacker can exploit the extractvalue() function in MySQL to perform error-based SQL injection, thereby extracting sensitive database information including database names, table schemas, and confidential data. This vulnerability leads to severe data leakage.
Vulnerability Analysis:
1. Default Weak Password Flaw
The application uses a default weak administrator credential (admin / 1). Because the system fails to enforce password changes during initial setup or first login, an attacker can log in directly to obtain administrative access. This grants a valid authenticated session (Session/Cookie), establishing the prerequisite for deeper exploitation (e.g., SQL injection).
2. SQL Injection Vulnerability (Core Flaw)
- Taint Source: The user-controllable orderDir parameter from the frontend request.
- Taint Propagation: In PageServiceImpl.java (around lines 193-196), the code fails to perform whitelist or enum validation on the parameter and directly concatenates it into the ORDER BY clause of the SQL statement.
- Trigger (Sink): The concatenated malicious SQL query is executed as-is by jdbcTemplate.query(pageSql, ...) in MysqlJdbcDaoImpl.java (around line 107). |
|---|
| Source | ⚠️ https://github.com/jac40577-art/jqp-admin/blob/main/jqp-admin/JQP-Admin%20Low-Code%20Platform%20SQL%20Injection%20in%20orderDir%20Parameter.md |
|---|
| User | Jacinta (UID 99758) |
|---|
| Submission | 11/13/2026 15:55 (23 days ago) |
|---|
| Moderation | 12/06/2026 22:55 (23 days later) |
|---|
| Status | Accepted |
|---|
| VulDB entry | 450912 [TedLiangHK jqp-admin up to 6b028c92b4a13501aea1052bf558bafccf0410ad PageServiceImpl.java query orderDir sql injection] |
|---|
| Points | 20 |
|---|