Discovered 9 months ago
Source: static code analysis
Category: SQL Injection
Confidence level: Weak

Problem

Possible SQL injection

Location

app/models/concerns/relative_positioning.rb:174

relation.where(:relative_position => range).update_all("relative_position = relative_position + #{delta}")

Category description: SQL injection is when a user is able to manipulate a value which is used unsafely inside a SQL query.

Solution: fix the issue in app/models/concerns/relative_positioning.rb or mark it as false positive.