File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
java/ql/src/Security/CWE/CWE-094 Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import semmle.code.java.frameworks.android.Intent
15
15
import semmle.code.java.dataflow.DataFlow
16
16
import semmle.code.java.dataflow.TaintTracking2
17
17
import semmle.code.java.dataflow.TaintTracking3
18
+ import semmle.code.java.dataflow.FlowSources
18
19
private import semmle.code.java.dataflow.ExternalFlow
19
20
import DataFlow:: PathGraph
20
21
@@ -85,7 +86,8 @@ class ExternalApkSource extends DataFlow::Node {
85
86
ExternalApkSource ( ) {
86
87
sourceNode ( this , "android-external-storage-dir" ) or
87
88
this .asExpr ( ) .( MethodAccess ) .getMethod ( ) instanceof UriConstructorMethod or
88
- this .asExpr ( ) .( StringLiteral ) .getValue ( ) .matches ( "file://%" )
89
+ this .asExpr ( ) .( StringLiteral ) .getValue ( ) .matches ( "file://%" ) or
90
+ this instanceof RemoteFlowSource
89
91
}
90
92
}
91
93
You can’t perform that action at this time.
0 commit comments