This commit is contained in:
Tony Torralba
2021-10-20 12:37:51 +02:00
parent 7a1b854678
commit 6363ff3c08
3 changed files with 10 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
/** Provides classes and predicates related to Android Fragments. */
import java
/** The class `android.app.Fragment` */

View File

@@ -1,3 +1,5 @@
/** Provides classes and predicates to reason about Android Fragment injection vulnerabilities. */
import java
private import semmle.code.java.dataflow.TaintTracking
private import semmle.code.java.dataflow.ExternalFlow
@@ -43,6 +45,10 @@ abstract class FragmentInjectionSink extends DataFlow::Node { }
* Extend this class to add additional taint steps that should apply to `FragmentInjectionTaintConf`.
*/
class FragmentInjectionAdditionalTaintStep extends Unit {
/**
* Holds if the step from `node1` to `node2` should be considered a taint
* step for the `FragmentInjectionTaintConf` configuration.
*/
abstract predicate step(DataFlow::Node n1, DataFlow::Node n2);
}

View File

@@ -1,3 +1,5 @@
/** Provides classes and predicates to be used in queries related to Android Fragment injection. */
import java
import semmle.code.java.dataflow.FlowSources
import semmle.code.java.dataflow.TaintTracking