mirror of
https://github.com/github/codeql.git
synced 2026-04-25 00:35:20 +02:00
Move the sources back the .ql files
Otherwise they would both apply at the same time, making both versions of the query identical.
This commit is contained in:
@@ -14,6 +14,8 @@
|
||||
import CommandInjectionRuntimeExec
|
||||
import ExecUserFlow::PathGraph
|
||||
|
||||
class RemoteSource extends Source instanceof RemoteFlowSource { }
|
||||
|
||||
from
|
||||
ExecUserFlow::PathNode source, ExecUserFlow::PathNode sink, DataFlow::Node sourceCmd,
|
||||
DataFlow::Node sinkCmd
|
||||
|
||||
@@ -30,10 +30,6 @@ module ExecCmdFlow = TaintTracking::Global<ExecCmdFlowConfig>;
|
||||
|
||||
abstract class Source extends DataFlow::Node { }
|
||||
|
||||
class RemoteSource extends Source instanceof RemoteFlowSource { }
|
||||
|
||||
class LocalSource extends Source instanceof LocalUserInput { }
|
||||
|
||||
module ExecUserFlowConfig implements DataFlow::ConfigSig {
|
||||
predicate isSource(DataFlow::Node source) { source instanceof Source }
|
||||
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
import CommandInjectionRuntimeExec
|
||||
import ExecUserFlow::PathGraph
|
||||
|
||||
class LocalSource extends Source instanceof LocalUserInput { }
|
||||
|
||||
from
|
||||
ExecUserFlow::PathNode source, ExecUserFlow::PathNode sink, DataFlow::Node sourceCmd,
|
||||
DataFlow::Node sinkCmd
|
||||
|
||||
Reference in New Issue
Block a user