mirror of
https://github.com/github/codeql.git
synced 2026-04-22 23:35:14 +02:00
Add additional sinks for connection methods
This commit is contained in:
@@ -200,7 +200,13 @@ private predicate sqlFragmentArgumentInner(DataFlow::CallNode call, DataFlow::No
|
||||
call = activeRecordQueryBuilderCall("annotate") and
|
||||
sink = call.getArgument(_)
|
||||
or
|
||||
call = activeRecordConnectionInstance().getAMethodCall("execute") and
|
||||
call =
|
||||
activeRecordConnectionInstance()
|
||||
.getAMethodCall([
|
||||
"delete", "exec_query", "exec_delete", "exec_insert", "exec_update", "execute",
|
||||
"insert", "select_all", "select_one", "select_rows", "select_value", "select_values",
|
||||
"select_update", "update"
|
||||
]) and
|
||||
sink = call.getArgument(0)
|
||||
or
|
||||
call = activeRecordQueryBuilderCall("update_all") and
|
||||
|
||||
Reference in New Issue
Block a user