Discovered 5 months ago
Source: static code analysis
Category: Mass Assignment
Confidence level: High

Problem

Unprotected mass assignment

Location

app/controllers/admin/user_fields_controller.rb:10

UserField.new(params.require(:user_field).permit(*Admin::UserFieldsController.columns))

Category description: Unprotected model attributes give the attacker a way to rewrite them. E.g., change the admin flag to true.

Solution: fix the issue in app/controllers/admin/user_fields_controller.rb or mark it as false positive.