Skip to content

Commit

Permalink
Set an actual operation for pymysql
Browse files Browse the repository at this point in the history
  • Loading branch information
Wout Feys committed Jul 30, 2024
1 parent 6e8c3f6 commit 5446ac5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aikido_firewall/sinks/pymysql.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def aikido_new_query(_self, sql, unbuffered=False):
logger.debug("Wrapper - `pymysql` version : %s", version("pymysql"))

context = get_current_context()
result = check_context_for_sql_injection(sql, "Test_op", context, MySQL())
result = check_context_for_sql_injection(sql, "pymysql.connections.query", context, MySQL())

logger.info("sql_injection results : %s", json.dumps(result))
if result:
Expand Down

0 comments on commit 5446ac5

Please sign in to comment.