Merge pull request #6015 from erik-krogh/resolve

Approved by asgerf
This commit is contained in:
CodeQL CI
2021-06-08 04:15:19 -07:00
committed by GitHub
4 changed files with 40 additions and 0 deletions

View File

@@ -577,6 +577,17 @@ module TaintedPath {
}
}
/**
* An expression whose value is resolved to a module using the [resolve](http://npmjs.com/package/resolve) library.
*/
class ResolveModuleSink extends Sink {
ResolveModuleSink() {
this = API::moduleImport("resolve").getACall().getArgument(0)
or
this = API::moduleImport("resolve").getMember("sync").getACall().getArgument(0)
}
}
/**
* A path argument to a file system access.
*/