We are sunsetting Hakiri on January 31 2022. To learn more please refer to this document.

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

Problem

Unprotected mass assignment

Location

app/controllers/admin/permalinks_controller.rb:23

Permalink.new(:url => params[:url], "tag_id" => Tag.find_by_name(params[:permalink_type_value]).id)

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