mirror of
https://github.com/github/codeql.git
synced 2026-04-18 13:34:02 +02:00
The ActiveRecord `delete_all` and `destroy_all` methods do not take a condition argument - they act on the scope of their receiver. The `delete_by` and `destroy_by` methods do take an argument which can be raw SQL, and are therefore vulnerable to SQL injection. For more info: https://api.rubyonrails.org/v6.1.4/classes/ActiveRecord/Relation.html#method-i-delete_all https://api.rubyonrails.org/v6.1.4/classes/ActiveRecord/Relation.html#method-i-delete_by