Once triggered, dangerous-subprocess-use-tainted-env-args
cannot be addressed
#3485
Closed
1 of 3 tasks
Labels
bug
Something isn't working
Describe the bug
The subject rule can be triggered in some valid circumstances. But the suggested recipe is misleading or does not work at all.
shlex.escape
is not a function (I suggest to replace it withshlex.quote()
).shlex.quote
is not accepted by the rule. As a result, I ended up ignoring it. I am not sure if currently there is any reasonable way to address the rule once triggered.To Reproduce
Try adding
shlex.quote
to the rule test cases and observe nothing changed in the static analysis report.Expected behavior
The recipe to fix the triggering rule in the rule description works in practice.
Priority
How important is this to you?
The text was updated successfully, but these errors were encountered: