Skip to content

Commit 4ef569f

Browse files
committed
recognize more exported functions in js/shell-command-constructed-from-input
1 parent 0a0137b commit 4ef569f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/ql/src/semmle/javascript/security/dataflow/UnsafeShellCommandConstructionCustomizations.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ module UnsafeShellCommandConstruction {
5353
ExternalInputSource() {
5454
this =
5555
Exports::getAValueExportedBy(Exports::getTopmostPackageJSON())
56-
.(DataFlow::FunctionNode)
56+
.getAFunctionValue()
5757
.getAParameter() and
5858
not this.getName() = ["cmd", "command"] // looks to be on purpose.
5959
}

0 commit comments

Comments
 (0)