mirror of
https://github.com/github/codeql.git
synced 2025-12-20 18:56:32 +01:00
Simplify non-https-url query
This commit is contained in:
@@ -14,10 +14,7 @@ import java
|
|||||||
import semmle.code.java.security.HttpsUrlsQuery
|
import semmle.code.java.security.HttpsUrlsQuery
|
||||||
import DataFlow::PathGraph
|
import DataFlow::PathGraph
|
||||||
|
|
||||||
from DataFlow::PathNode source, DataFlow::PathNode sink, MethodAccess m, HttpStringLiteral s
|
from DataFlow::PathNode source, DataFlow::PathNode sink
|
||||||
where
|
where any(HttpStringToUrlOpenMethodFlowConfig c).hasFlowPath(source, sink)
|
||||||
source.getNode().asExpr() = s and
|
select sink.getNode(), source, sink, "URL may have been constructed with HTTP protocol, using $@.",
|
||||||
sink.getNode().asExpr() = m.getQualifier() and
|
source.getNode(), "this source"
|
||||||
any(HttpStringToUrlOpenMethodFlowConfig c).hasFlowPath(source, sink)
|
|
||||||
select m, source, sink, "URL may have been constructed with HTTP protocol, using $@.", s,
|
|
||||||
"this source"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user