Skip to content
vetkitChecksChangelogDocumentation

vetkit.ruby.mass-assignment.unfiltered-params

A model is created or updated from a raw params hash without permit. Rails 4+ rejects this at runtime, but in Sinatra / Grape or with permit_all_parameters it is mass assignment.

Last updated:

Suite: Security

ruby

A model is created or updated from a raw params hash without permit. Rails 4+ rejects this at runtime, but in Sinatra / Grape or with permit_all_parameters it is mass assignment.

Category: SECURITY · Engine rule severity: INFO

How to fix it

Pass only explicitly permitted attributes (params.require(:user).permit(:name, :email)).

References

Source: packages/engine/rules/sast/ruby.yml.

Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.