You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Confidence: High
Category: Command Injection
Check: Execute
Message: Possible command injection
Code: Open3.pipeline(["ls", params["test"]])
File: a_file.rb
Line: 9
Relevant code:
Open3.pipeline(["ls",params["test"]])
Why might this be a false positive?
As far as I know, passing an array for a command to Open3.pipeline will treat the first element as the command and all other elements as parameters to the command, which makes the parameter elements safe against command injections.
The text was updated successfully, but these errors were encountered:
Background
Brakeman version: 6.1.2
Rails version: 7.2.0
Ruby version: 3.3.4
Link to Rails application code: -
False Positive
Full warning from Brakeman:
Relevant code:
Why might this be a false positive?
As far as I know, passing an array for a command to
Open3.pipeline
will treat the first element as the command and all other elements as parameters to the command, which makes the parameter elements safe against command injections.The text was updated successfully, but these errors were encountered: