Overly permissive request parameters detected.

Description

Being overly permissive with request parameters can allow an attacker to update arbitrary model attributes.

Remediations

❌ Avoid blanket permitting of parameters:

params.permit!

✅ Only permit parameters the user should be able to update:

params.permit(:name, :email)

Associated CWE

OWASP Top 10

Configuration

To skip this rule during a scan, use the following flag

bearer scan /path/to/your-project/ --skip-rule=ruby_rails_permissive_parameters

To run only this rule during a scan, use the following flag

bearer scan /path/to/your-project/ --only-rule=ruby_rails_permissive_parameters

Ready to take the next step? Learn more about Bearer Cloud.