Files
SQLBot/backend/apps
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-06-10 11:45:35 +08:00
2025-12-15 16:30:07 +08:00
2025-04-23 21:14:42 +08:00
2026-02-05 10:15:46 +08:00