You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/invalid-sql-queries.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,10 +2,10 @@
2
2
3
3
Zen blocks SQL queries that it can't tokenize when they contain user input. This prevents attackers from bypassing SQL injection detection with malformed queries. For example, ClickHouse ignores invalid SQL after `;`, and SQLite runs queries before an unclosed `/*` comment.
4
4
5
-
This is on by default. In blocking mode, these queries are blocked. In detection-only mode, they are reported but still executed.
6
-
7
-
If you see false positives (legitimate queries being blocked), disable it with:
5
+
This is off by default. To enable it, set the environment variable:
8
6
9
7
```
10
-
AIKIDO_BLOCK_INVALID_SQL=false node app.js
8
+
AIKIDO_BLOCK_INVALID_SQL=true node app.js
11
9
```
10
+
11
+
In blocking mode, these queries are blocked. In detection-only mode, they are reported but still executed.
0 commit comments