mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Merge pull request #19768 from trailofbits/VF/lodash-group-by
Add lodash GroupBy as taint step
This commit is contained in:
@@ -341,6 +341,18 @@ module LodashUnderscore {
|
||||
preservesValue = true
|
||||
}
|
||||
}
|
||||
|
||||
private class LodashGroupBy extends DataFlow::SummarizedCallable {
|
||||
LodashGroupBy() { this = "_.groupBy" }
|
||||
|
||||
override DataFlow::CallNode getACall() { result = member("groupBy").getACall() }
|
||||
|
||||
override predicate propagatesFlow(string input, string output, boolean preservesValue) {
|
||||
input = "Argument[0]" and
|
||||
output = ["Argument[1].Parameter[0]", "ReturnValue"] and
|
||||
preservesValue = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user