From 065838a27019a0262373c3e795e722d9e482affd Mon Sep 17 00:00:00 2001 From: Maximilian Hildebrand Date: Wed, 4 Mar 2026 08:17:33 +0100 Subject: [PATCH] Improved Forbidden Keywords --- src/security.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/security.ts b/src/security.ts index 8d2c106..77e3a8a 100644 --- a/src/security.ts +++ b/src/security.ts @@ -26,6 +26,13 @@ export class QueryValidator { 'GRANT', 'REVOKE', 'DENY', + 'RESTORE', + 'BACKUP', + 'WRITETEXT', + 'UPDATETEXT', + 'RECONFIGURE', + 'RENAME', + 'UPSERT', ]; static validateQuery(query: string): { isValid: boolean; error?: string } { @@ -102,4 +109,4 @@ export class QueryValidator { `$1TOP ${maxRows} ` ); } -} \ No newline at end of file +}