From 29178417a1967dbafa1c9e4996cdf24877527844 Mon Sep 17 00:00:00 2001 From: Hans Ott Date: Mon, 30 Dec 2024 12:10:16 +0100 Subject: [PATCH] Fix lint --- aikido_zen/vulnerabilities/sql_injection/init_test.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/aikido_zen/vulnerabilities/sql_injection/init_test.py b/aikido_zen/vulnerabilities/sql_injection/init_test.py index 97645e37..d445bebb 100644 --- a/aikido_zen/vulnerabilities/sql_injection/init_test.py +++ b/aikido_zen/vulnerabilities/sql_injection/init_test.py @@ -273,8 +273,14 @@ def test_user_input_is_multiline(): def test_user_input_is_longer_than_query(): is_not_sql_injection("SELECT * FROM users", "SELECT * FROM users WHERE id = 'a'") + def test_sqlite_dollar_placeholder(): - is_sql_injection("SELECT * FROM users WHERE id = '1' OR $$ IS NULL -- '", "1' OR $$ IS NULL -- ", "sqlite") + is_sql_injection( + "SELECT * FROM users WHERE id = '1' OR $$ IS NULL -- '", + "1' OR $$ IS NULL -- ", + "sqlite", + ) + def test_multiline_queries(): is_sql_injection(