mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Create ZipSlip.qll
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import python
|
||||
import experimental.semmle.python.Concepts
|
||||
import semmle.python.dataflow.new.DataFlow
|
||||
import semmle.python.dataflow.new.TaintTracking
|
||||
|
||||
class ZipSlipConfig extends TaintTracking::Configuration {
|
||||
ZipSlipConfig() { this = "ZipSlipConfig" }
|
||||
|
||||
override predicate isSource(DataFlow::Node source) { source = any(OpenFile openfile).getAPathArgument() }
|
||||
|
||||
override predicate isSink(DataFlow::Node sink) { sink = any(ZipFile zipfile).getAnInput() }
|
||||
}
|
||||
Reference in New Issue
Block a user