alerts_controller.rb
code Severe
Mass Assignment
Discovered 7 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.

prometheus_api_proxy.rb
code Severe
Mass Assignment
Discovered 7 months ago
Source: static code analysis
Category: Mass Assignment
Confidence level: Medium

Problem

Parameters should be whitelisted for mass assignment

Location

app/controllers/concerns/metrics/dashboard/prometheus_api_proxy.rb:43

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/concerns/metrics/dashboard/prometheus_api_proxy.rb or mark it as false positive.