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
1515import semmle.code.java.dataflow.DataFlow
1616import semmle.code.java.dataflow.TaintTracking2
1717import semmle.code.java.dataflow.TaintTracking3
18+ import semmle.code.java.dataflow.FlowSources
1819private import semmle.code.java.dataflow.ExternalFlow
1920import DataFlow:: PathGraph
2021
@@ -85,7 +86,8 @@ class ExternalApkSource extends DataFlow::Node {
8586 ExternalApkSource ( ) {
8687 sourceNode ( this , "android-external-storage-dir" ) or
8788 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
8991 }
9092}
9193
You can’t perform that action at this time.
0 commit comments