Skip to content

Commit 1c380fb

Browse files
committed
PS: Add another missing flow found by Chanel.
1 parent 898297b commit 1c380fb

File tree

1 file changed

+10
-1
lines changed
  • powershell/ql/test/library-tests/dataflow/params

1 file changed

+10
-1
lines changed

powershell/ql/test/library-tests/dataflow/params/test.ps1

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,13 @@ ThreeArgs -z $third -y $second $first
3636
ThreeArgs -z $third $second -x $first
3737
ThreeArgs -z $third -x $first $second
3838
ThreeArgs -z $third $first -y $second
39-
ThreeArgs -z $third -y $second $first
39+
ThreeArgs -z $third -y $second $first
40+
41+
function Invoke-InvokeExpressionInjection2
42+
{
43+
param($UserInput)
44+
Sink $UserInput # $ MISSING: hasValueFlow=1
45+
}
46+
47+
$input = Source "1"
48+
Invoke-InvokeExpressionInjection2 -UserInput $input

0 commit comments

Comments
 (0)