Refactor UnsafeAndroidAccess

This commit is contained in:
Ed Minnix
2023-03-21 16:36:26 -04:00
parent 807588a031
commit 1e0c6811a4
3 changed files with 17 additions and 5 deletions

View File

@@ -14,9 +14,9 @@
import java
import semmle.code.java.security.UnsafeAndroidAccessQuery
import DataFlow::PathGraph
import FetchUntrustedResourceFlow::PathGraph
from DataFlow::PathNode source, DataFlow::PathNode sink, FetchUntrustedResourceConfiguration conf
where conf.hasFlowPath(source, sink)
from FetchUntrustedResourceFlow::PathNode source, FetchUntrustedResourceFlow::PathNode sink
where FetchUntrustedResourceFlow::hasFlowPath(source, sink)
select sink.getNode(), source, sink, "Unsafe resource fetching in Android WebView due to $@.",
source.getNode(), sink.getNode().(UrlResourceSink).getSinkType()