Files
SQLBot/backend
Sebastion dd9627b682 fix: escape SQL values in row permission filter to prevent injection (CWE-89)
All user-controlled values interpolated into SQL WHERE clause fragments
in transTreeItem() and getSysVariableValue() are now passed through
_escape_sql_value() which doubles single quotes (standard SQL escaping)
and escapes backslashes. The logic operator in transTreeToWhere() is
also validated against a whitelist.

Affected injection vectors:
- item["enum_value"] list (enum filter)
- item["value"] string (normal filter)
- user variable values (variable filter)
- current_user name/account/email (system variable filter)
- tree["logic"] operator (tree structure)
2026-06-11 11:21:37 +08:00
..
2026-04-20 13:29:17 +08:00
2026-06-04 11:40:58 +08:00
2025-04-21 17:51:16 +08:00
2025-06-25 16:02:14 +08:00
2026-06-04 18:22:30 +08:00
2025-04-21 17:51:16 +08:00