| 제목 | zsadmin ZS-Admin <=1.0.0 SQL Injection |
|---|
| 설명 | ZS-Admin's common pagination class PageInfo reads the sorting field from the request parameter orderField and passes it to MyBatis-Plus OrderItem.asc() or OrderItem.desc(). The value is only converted by StrUtil.toUnderlineCase() and is not validated against a whitelist of allowed database columns.
When a business endpoint constructs a pagination object with new PageInfo<>(xxxPageQueryParams), an attacker can inject additional SQL expressions through orderField. The expression is appended to the generated ORDER BY clause, resulting in SQL injection. |
|---|
| 원천 | ⚠️ https://github.com/zsadmin2025/zs-admin-java/issues/4 |
|---|
| 사용자 | cl0ney (UID 99026) |
|---|
| 제출 | 2026. 06. 15. PM 05:47 (1 월 ago) |
|---|
| 모더레이션 | 2026. 07. 21. AM 10:55 (1 month later) |
|---|
| 상태 | 수락 |
|---|
| VulDB 항목 | 380828 [zsadmin2025 ZS-Admin 까지 b52e14536d59fda11e56e2536a1c32e82a38cead com.zs.sys.dept.controller.SysDeptController page OrderItem.asc/OrderItem.desc orderField SQL 주입] |
|---|
| 포인트들 | 20 |
|---|