Discovered 9 months ago
Source: static code analysis
Category: Mass Assignment
Confidence level: Medium

Problem

Parameters should be whitelisted for mass assignment

Location

app/controllers/projects/prometheus/alerts_controller.rb:76

params.permit!

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