Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hansott authored and bitterpanda63 committed Dec 30, 2024
1 parent 9d63c50 commit 2917841
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion aikido_zen/vulnerabilities/sql_injection/init_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 2917841

Please sign in to comment.