mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
recognize more exported functions in js/shell-command-constructed-from-input
This commit is contained in:
@@ -53,7 +53,7 @@ module UnsafeShellCommandConstruction {
|
||||
ExternalInputSource() {
|
||||
this =
|
||||
Exports::getAValueExportedBy(Exports::getTopmostPackageJSON())
|
||||
.(DataFlow::FunctionNode)
|
||||
.getAFunctionValue()
|
||||
.getAParameter() and
|
||||
not this.getName() = ["cmd", "command"] // looks to be on purpose.
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user