Skip to content

Commit 670ad74

Browse files
committed
PS: Add false negative.
1 parent 5f07641 commit 670ad74

File tree

1 file changed

+2
-0
lines changed
  • powershell/ql/test/query-tests/security/cwe-078/CommandInjection

1 file changed

+2
-0
lines changed

powershell/ql/test/query-tests/security/cwe-078/CommandInjection/test.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,4 +213,6 @@ function false-positive-in-call-operator($d)
213213
{
214214
$o = Read-Host "enter input"
215215
& unzip -o "$o" -d $d # GOOD
216+
217+
. "$o" # BAD [NOT DETECTED]
216218
}

0 commit comments

Comments
 (0)