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

Problem

Unprotected mass assignment

Location

app/controllers/groups_controller.rb:506

GroupRequest.create!(:group => find_group(:id), :user => current_user, :reason => params[:reason])

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/groups_controller.rb or mark it as false positive.