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
If we have an array of strings passed to a function, for example, and we assign the first element to a variable, we do not consider this variable to be dynamic input.
Expected Behavior
The following code, for example, should flag our filereadtaint rule:
Upon inspection, we realised that most of the cases detailed in the comment were missed not because of the array construction, but because of "splatted" args (args...). This is fixed by
Description & Reproduction
If we have an array of strings passed to a function, for example, and we assign the first element to a variable, we do not consider this variable to be dynamic input.
Expected Behavior
The following code, for example, should flag our
filereadtaint
rule:Actual Behavior
The above code does not flag our
filereadtaint
rule because filepath := args[0] is not considered dynamic inputPossible Fix
Your Environment
The text was updated successfully, but these errors were encountered: