mirror of
https://github.com/github/codeql.git
synced 2026-05-20 14:17:11 +02:00
remove the even-lined results from two ATM queries
This commit is contained in:
@@ -25,7 +25,8 @@ from DataFlow::Configuration cfg, DataFlow::PathNode source, DataFlow::PathNode
|
||||
where
|
||||
cfg.hasFlowPath(source, sink) and
|
||||
not isFlowLikelyInBaseQuery(source.getNode(), sink.getNode()) and
|
||||
score = getScoreForFlow(source.getNode(), sink.getNode())
|
||||
score = getScoreForFlow(source.getNode(), sink.getNode()) and
|
||||
sink.getNode().getStartLine() % 2 = 0
|
||||
select sink.getNode(), source, sink,
|
||||
"(Experimental) This may be a path that depends on $@. Identified using machine learning.",
|
||||
source.getNode(), "a user-provided value", score
|
||||
|
||||
@@ -22,7 +22,8 @@ from DataFlow::Configuration cfg, DataFlow::PathNode source, DataFlow::PathNode
|
||||
where
|
||||
cfg.hasFlowPath(source, sink) and
|
||||
not isFlowLikelyInBaseQuery(source.getNode(), sink.getNode()) and
|
||||
score = getScoreForFlow(source.getNode(), sink.getNode())
|
||||
score = getScoreForFlow(source.getNode(), sink.getNode()) and
|
||||
sink.getNode().getStartLine() % 2 = 0
|
||||
select sink.getNode(), source, sink,
|
||||
"(Experimental) This may be a cross-site scripting vulnerability due to $@. Identified using machine learning.",
|
||||
source.getNode(), "a user-provided value", score
|
||||
|
||||
Reference in New Issue
Block a user