Merge pull request #1677 from xiemaisi/js/flow-summary-fixes

Approved by esben-semmle
This commit is contained in:
semmle-qlci
2019-08-02 14:02:47 +01:00
committed by GitHub
4 changed files with 4 additions and 6 deletions

View File

@@ -11,7 +11,7 @@ import Configurations
import PortalExitSource
import SinkFromAnnotation
from TaintTracking::Configuration cfg, DataFlow::PathNode source, DataFlow::PathNode sink, Portal p
from DataFlow::Configuration cfg, DataFlow::PathNode source, DataFlow::PathNode sink, Portal p
where
cfg.hasFlowPath(source, sink) and
p = source.getNode().(PortalExitSource).getPortal() and

View File

@@ -11,7 +11,7 @@ import Configurations
import PortalEntrySink
import SourceFromAnnotation
from TaintTracking::Configuration cfg, DataFlow::PathNode source, DataFlow::PathNode sink, Portal p
from DataFlow::Configuration cfg, DataFlow::PathNode source, DataFlow::PathNode sink, Portal p
where
cfg.hasFlowPath(source, sink) and
p = sink.getNode().(PortalEntrySink).getPortal() and

View File

@@ -11,8 +11,7 @@ class PortalEntrySink extends DataFlow::AdditionalSink {
PortalEntrySink() { this = p.getAnEntryNode(true) }
override predicate isSinkFor(DataFlow::Configuration cfg, DataFlow::FlowLabel lbl) {
cfg instanceof TaintTracking::Configuration and
lbl = any(DataFlow::FlowLabel l)
any()
}
/** Gets the portal of which this is an entry node. */

View File

@@ -11,8 +11,7 @@ class PortalExitSource extends DataFlow::AdditionalSource {
PortalExitSource() { this = p.getAnExitNode(true) }
override predicate isSourceFor(DataFlow::Configuration cfg, DataFlow::FlowLabel lbl) {
cfg instanceof TaintTracking::Configuration and
lbl = any(DataFlow::FlowLabel l)
any()
}
/** Gets the portal of which this is an exit node. */