Repository navigation
v0.12.2
A security release for the 0.12 line, with the same fix as 1.0.1. It fixes a way to inject SQL through the row-level data scope of ddk-mybatis-starter when group or owner ids are strings. Applications that set ddk.mybatis.data-scope.numeric-group-id or numeric-owner-id to false should upgrade. Nothing else changes, and nothing needs to change in the application. The advisory is GHSA-9cw9-2935-ch77.
Security
- A string data scope id can no longer inject SQL. With string group or owner ids, the data scope condition doubled single quotes but kept backslashes, which MySQL treats as escapes by default: a group id ending in a backslash made the next group id SQL, and read the rows of every tenant. A string data scope id that contains a backslash or a control character is now rejected before any SQL runs; ids with single quotes still work. Numeric ids, the default, were not affected. Affects every release since 0.8.0