We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Brakeman version: 4.2.1 Rails version: 5.1.6 Ruby version: 2.3.4
Similar to #1179, I'd expect the following code to produce a command injection warning in brakeman:
def dangerous(foo) system("echo " + foo) end
Would it be possible to get brakeman to transform that into system("echo #{foo}"), similar to your suggested solution for #1179?
system("echo #{foo}")
The text was updated successfully, but these errors were encountered:
In this case I'd rather check for string concatenation the way the SQLi check does.
Sorry, something went wrong.
That works too!
@presidentbeef any updates on this?
Successfully merging a pull request may close this issue.
Background
Brakeman version: 4.2.1
Rails version: 5.1.6
Ruby version: 2.3.4
Issue
Similar to #1179, I'd expect the following code to produce a command injection warning in brakeman:
Would it be possible to get brakeman to transform that into
system("echo #{foo}")
, similar to your suggested solution for #1179?The text was updated successfully, but these errors were encountered: