-
Notifications
You must be signed in to change notification settings - Fork 715
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
SQL injection false negative for connections on complex objects #1678
Comments
This is really unusual code. There are two bits to this:
We could assume that any But before we go down that road, it would be helpful to know if this was based on real code or not. |
Yes this is the kind of code we use in production. As we are using multiple database, we have for example this use case:
Rely on |
Background
Brakeman version: 5.2.1
Rails version: 6 and 7
Ruby version: 3.0.3p157
Issue
The same SQL injection risk exists in both functions. The first one is not detected whereas the second one is correctly detected.
The text was updated successfully, but these errors were encountered: