Alex
c8bb781604
fix: expand _WRITE_COMMANDS and block multi-statement semicolon injection
- Add missing write commands: UPSERT, LOAD, COPY, VACUUM, ANALYZE,
ANALYSE, REINDEX, CLUSTER, REFRESH, COMMENT, SET, RESET
- _validate_query() now splits on ';' and validates each statement
independently; multi-statement queries are rejected outright in
read-only mode to prevent 'SELECT 1; DROP TABLE users' bypass
- Extract single-statement logic into _validate_statement() helper
- Add TestSemicolonInjection and TestExtendedWriteCommands test classes
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-07 09:17:34 -07:00
..
2025-11-29 16:55:24 -05:00
2026-01-27 15:47:29 -05:00
2025-11-26 22:32:43 -08:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00
2026-03-10 01:38:54 -03:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00
2025-11-29 16:55:24 -05:00
2025-11-29 16:55:24 -05:00
2025-11-29 16:55:24 -05:00
2025-10-20 14:10:19 -07:00
2025-11-20 16:58:41 -08:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00
2026-03-19 20:11:45 +08:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00
2026-04-07 09:17:34 -07:00
2025-10-20 14:10:19 -07:00
2025-11-24 16:51:28 -05:00
2025-11-29 16:55:24 -05:00
2025-11-24 16:51:28 -05:00
2025-10-20 14:10:19 -07:00