You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Security] SQL Injection via sortField parameter in multiple unauthenticated endpoints #4
The sortField parameter in PageRequest is passed directly to MyBatis-Plus orderBy() method without any validation, resulting in ORDER BY clause SQL injection. The endpoints POST /api/picture/list/page/vo and POST /api/space/list/page/vo are accessible without authentication.
StringsortField = pictureQueryRequest.getSortField(); // user-controlledqueryWrapper.orderBy(StrUtil.isNotEmpty(sortField), sortOrder.equals("ascend"), sortField);
// sortField is directly concatenated as column name, no parameterization, no whitelist
Activity