Files
siyuan/kernel
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-05-09 11:26:37 +08:00
2026-04-05 16:48:32 +08:00
2026-04-05 16:48:32 +08:00
2026-05-09 11:26:37 +08:00
2026-05-09 11:26:37 +08:00
2026-05-09 11:26:37 +08:00
2025-10-04 14:15:03 +08:00