mirror of
https://github.com/github/codeql.git
synced 2026-04-26 09:15:12 +02:00
Identify more vulnerable ActiveRecord methods
`find_by!`, `find_or_create_by`, `find_or_create_by!` and `find_or_initialize_by` act similarly to `find_by`.
This commit is contained in:
@@ -68,7 +68,8 @@ private Expr sqlFragmentArgument(MethodCall call) {
|
||||
(
|
||||
methodName =
|
||||
[
|
||||
"delete_by", "destroy_by", "exists?", "find_by", "find_by_sql", "from", "group", "having",
|
||||
"delete_by", "destroy_by", "exists?", "find_by", "find_by!", "find_or_create_by",
|
||||
"find_or_create_by!", "find_or_initialize_by", "find_by_sql", "from", "group", "having",
|
||||
"joins", "lock", "not", "order", "pluck", "where"
|
||||
] and
|
||||
result = call.getArgument(0)
|
||||
|
||||
Reference in New Issue
Block a user