New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
False positives SQL injections #1571
Comments
There are really possible SQL injection is issue3, sorry. |
I agree - all of these are fixable. |
e.g. `20.days.ago` Part of #1571
e.g. `20.days.ago` Part of #1571
@presidentbeef I just want to make sure everyone's on the same page. Example 3 here is open to SQL Injection. |
@presidentbeef you ignored almost all sanitize methods. However, you missed method sanitize_sql_for_order from the document https://api.rubyonrails.org/classes/ActiveRecord/Sanitization/ClassMethods.html#method-i-sanitize_sql_for_order |
Background
Brakeman version: brakeman 5.0.0
Rails version: Rails 6.0.3.4
Ruby version: ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-linux]
Issue
There are 4 examples that I believe free from any possible sql injection, but brakeman show warnings
The text was updated successfully, but these errors were encountered: