Add RemoteFlowSource as a valid source

This commit is contained in:
Ed Minnix
2023-03-06 10:03:07 -05:00
parent 4d51e4fed0
commit 0eaad4136e

View File

@@ -15,6 +15,7 @@ import semmle.code.java.frameworks.android.Intent
import semmle.code.java.dataflow.DataFlow
import semmle.code.java.dataflow.TaintTracking2
import semmle.code.java.dataflow.TaintTracking3
import semmle.code.java.dataflow.FlowSources
private import semmle.code.java.dataflow.ExternalFlow
import DataFlow::PathGraph
@@ -85,7 +86,8 @@ class ExternalApkSource extends DataFlow::Node {
ExternalApkSource() {
sourceNode(this, "android-external-storage-dir") or
this.asExpr().(MethodAccess).getMethod() instanceof UriConstructorMethod or
this.asExpr().(StringLiteral).getValue().matches("file://%")
this.asExpr().(StringLiteral).getValue().matches("file://%") or
this instanceof RemoteFlowSource
}
}