Merge pull request #6262 from erik-krogh/slash

Approved by asgerf
This commit is contained in:
CodeQL CI
2021-07-13 05:44:55 -07:00
committed by GitHub
4 changed files with 74 additions and 0 deletions

View File

@@ -798,6 +798,12 @@ module TaintedPath {
srclabel instanceof Label::SplitPath and
dstlabel.(Label::PosixPath).canContainDotDotSlash()
)
or
exists(API::CallNode call | call = API::moduleImport("slash").getACall() |
src = call.getArgument(0) and
dst = call and
srclabel = dstlabel
)
}
/**