mirror of
https://github.com/github/codeql.git
synced 2026-01-10 13:10:26 +01:00
Update ZipSlip.qll
This commit is contained in:
@@ -6,7 +6,11 @@ import semmle.python.dataflow.new.TaintTracking
|
||||
class ZipSlipConfig extends TaintTracking::Configuration {
|
||||
ZipSlipConfig() { this = "ZipSlipConfig" }
|
||||
|
||||
override predicate isSource(DataFlow::Node source) { source = any(CopyFile copyfile).getAPathArgument() }
|
||||
|
||||
override predicate isSink(DataFlow::Node sink) { sink = any(ZipFile zipfile).getAnInput() }
|
||||
override predicate isSource(DataFlow::Node source) {
|
||||
source = API::moduleImport("zipfile").getMember("ZipFile").getACall()
|
||||
}
|
||||
|
||||
override predicate isSink(DataFlow::Node sink) {
|
||||
sink = any(CopyFile copyfile).getAPathArgument()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user