| 제목 | https://gitee.com/PerfreeBlog/PerfreeBlog/ PerfreeBlog 1.0 SQL Injection |
|---|
| 설명 | PerfreeBlog (a blogging system built on Spring Boot 3 + MyBatis-Plus) does not apply a whitelist to the `sortingFields[].field` value in request bodies on its frontend pagination endpoints. The value is passed directly to `MyBatisUtils.buildPage`, which builds an `OrderItem` and concatenates it into the SQL `ORDER BY` clause, resulting in SQL injection.
The `PageParam.sortingFields` field has no format constraints. `SortingFieldUtils.handleCustomSortingField` only fills in a default value when the frontend does not supply sorting fields; non-empty values are passed through unchanged. `MybatisPlusConfig` registers only `PaginationInnerInterceptor`, with no `BlockAttackInnerInterceptor` and no column-name validation. An attacker can read arbitrary data from the database via time-based blind injection, and these endpoints require no authentication. |
|---|
| 원천 | ⚠️ https://github.com/bkglfpp/CVE-md/blob/main/PerfreeBlog-main/frontend-pagination-order-by-injection.md |
|---|
| 사용자 | youran (UID 89737) |
|---|
| 제출 | 2026. 11. 02. PM 08:14 (28 날 ago) |
|---|
| 모더레이션 | 2026. 11. 30. PM 06:22 (28 days later) |
|---|
| 상태 | 수락 |
|---|
| VulDB 항목 | 446176 [PerfreeBlog 까지 4.0.11 MyBatisUtils.java buildPage field SQL 주입] |
|---|
| 포인트들 | 20 |
|---|