mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
Java: Refactor UnsafeContentUriResolution.
This commit is contained in:
@@ -14,10 +14,10 @@
|
||||
|
||||
import java
|
||||
import semmle.code.java.security.UnsafeContentUriResolutionQuery
|
||||
import DataFlow::PathGraph
|
||||
import UnsafeContentResolutionFlow::PathGraph
|
||||
|
||||
from DataFlow::PathNode src, DataFlow::PathNode sink
|
||||
where any(UnsafeContentResolutionConf c).hasFlowPath(src, sink)
|
||||
from UnsafeContentResolutionFlow::PathNode src, UnsafeContentResolutionFlow::PathNode sink
|
||||
where UnsafeContentResolutionFlow::hasFlowPath(src, sink)
|
||||
select sink.getNode(), src, sink,
|
||||
"This ContentResolver method that resolves a URI depends on a $@.", src.getNode(),
|
||||
"user-provided value"
|
||||
|
||||
Reference in New Issue
Block a user