You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After adding brakeman for static security vulnerability analysis, I noticed the latest avo-dashboards version (3.15.7) raises a weak warning in 3 places:
hey @Paul-Bob and @ObiWanKeoni . I've worked on the above brakeman warnings and solved them in my code base locally. Wanted to submit a PR to fix. However, when i run "brakeman" in the terminal, i noticed other warnings flagged by brakeman in addition to the ones you highlighted. Should i solve these too before submitting the PR or its okay to submit a PR for a fix restricted to only the warnings you highlighted above? Below is a snippet of my terminal output to show the additional warnings:
`== Warnings ==
Confidence: High
Category: Redirect
Check: Redirect
Message: Possible unprotected redirect
Code: redirect_to((params[:referrer] or resource_view_response_path))
File: app/controllers/avo/associations_controller.rb
Line: 281
Confidence: Medium
Category: Mass Assignment
Check: MassAssignment
Message: Specify exact keys allowed for mass assignment instead of using permit! which allows any keys
Code: params.permit!
File: app/helpers/avo/application_helper.rb
Line: 110
Confidence: Medium
Category: Mass Assignment
Check: MassAssignment
Message: Specify exact keys allowed for mass assignment instead of using permit! which allows any keys
Code: params.permit!
File: app/views/avo/partials/_table_header.html.erb
Line: 69
Confidence: Medium
Category: Mass Assignment
Check: MassAssignment
Message: Specify exact keys allowed for mass assignment instead of using permit! which allows any keys
Code: params.permit!
File: app/views/avo/partials/_view_toggle_button.html.erb
Line: 30
Confidence: Medium
Category: SQL Injection
Check: SQL
Message: Possible SQL injection
Code: summary_query.group(params[:field_id].to_sym)
File: app/controllers/avo/charts_controller.rb
Line: 6
`
As for the avo version i'm running:
zhephyn@zhephyn-HP-Notebook-PC:~/Desktop/github_projects/avo$ rails runner 'puts Avo::VERSION' warning: parser/current is loading parser/ruby33, which recognizes 3.3.6-compliant syntax, but you are running 3.3.1. Please see https://github.com/whitequark/parser#compatibility-with-ruby-mri. 3.15.7
Context
After adding brakeman for static security vulnerability analysis, I noticed the latest avo-dashboards version (3.15.7) raises a weak warning in 3 places:
I think this can be remedied by using strong parameters:
System configuration
Avo version: 3.15.7
Rails version: 8.0.1
Ruby version: 3.3.4
License type
Are you using Avo monkey patches, overriding views or view components?
Screenshots or screen recordings
N/A
The text was updated successfully, but these errors were encountered: