mirror of
https://github.com/github/codeql.git
synced 2026-05-05 05:35:13 +02:00
JS: support http.request URL requests
This commit is contained in:
@@ -157,7 +157,11 @@ private class NodeHttpUrlRequest extends CustomUrlRequest {
|
||||
exists (string moduleName, DataFlow::SourceNode callee |
|
||||
this = callee.getACall() |
|
||||
(moduleName = "http" or moduleName = "https") and
|
||||
callee = DataFlow::moduleMember(moduleName, httpMethodName()) and
|
||||
(
|
||||
callee = DataFlow::moduleMember(moduleName, httpMethodName())
|
||||
or
|
||||
callee = DataFlow::moduleMember(moduleName, "request")
|
||||
) and
|
||||
url = getArgument(0)
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user