Skip to content

Commit e2bba97

Browse files
authored
Merge pull request #4860 from erik-krogh/functionExports
Approved by esbena
2 parents b35edc9 + 4ef569f commit e2bba97

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)