From 1c380fb7fb7efece850455e491befbbde948789d Mon Sep 17 00:00:00 2001 From: Mathias Vorreiter Pedersen Date: Tue, 1 Apr 2025 19:11:12 +0100 Subject: [PATCH] PS: Add another missing flow found by Chanel. --- .../ql/test/library-tests/dataflow/params/test.ps1 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/powershell/ql/test/library-tests/dataflow/params/test.ps1 b/powershell/ql/test/library-tests/dataflow/params/test.ps1 index 767baec466e..8e5cb1fad82 100644 --- a/powershell/ql/test/library-tests/dataflow/params/test.ps1 +++ b/powershell/ql/test/library-tests/dataflow/params/test.ps1 @@ -36,4 +36,13 @@ ThreeArgs -z $third -y $second $first ThreeArgs -z $third $second -x $first ThreeArgs -z $third -x $first $second ThreeArgs -z $third $first -y $second -ThreeArgs -z $third -y $second $first \ No newline at end of file +ThreeArgs -z $third -y $second $first + +function Invoke-InvokeExpressionInjection2 +{ + param($UserInput) + Sink $UserInput # $ MISSING: hasValueFlow=1 +} + +$input = Source "1" +Invoke-InvokeExpressionInjection2 -UserInput $input \ No newline at end of file