Files
siyuan/kernel/sql
Qiaochu Hu 3071ad22d4 🔒 Use parameterized queries in putStat to prevent SQL injection (#17658)
The putStat function in kernel/sql/stat.go was building SQL queries
via string concatenation instead of using parameterized queries.
While currently only called with hardcoded internal values, this is
a defense-in-depth improvement that prevents future SQL injection
if the function is ever called with user-controlled input.

The execStmtTx helper already supports variadic args, so this is
a straightforward change to use ? placeholders.

Co-authored-by: Test User <test@example.com>
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-10 19:24:21 +08:00
..
2026-04-05 16:48:32 +08:00
2026-03-22 12:19:44 +08:00
2026-04-05 16:48:32 +08:00
2026-04-05 16:48:32 +08:00
2026-03-17 20:15:57 +08:00
2026-04-15 21:56:43 +08:00
2026-04-05 16:48:32 +08:00
2026-04-05 16:48:32 +08:00