Class CollectionWrapperPropagationRule

All Implemented Interfaces:
ITaintPropagationRule

public class CollectionWrapperPropagationRule extends WrapperPropagationRule
Rule that is specifically suited for Taint Wrappers with ICollectionsSupport
Author:
Tim Lange
  • Constructor Details

  • Method Details

    • computeWrapperTaints

      protected Set<Abstraction> computeWrapperTaints(Abstraction d1, soot.jimple.Stmt iStmt, Abstraction source, ByReferenceBoolean killSource)
      Computes the taints produced by a taint wrapper object
      Overrides:
      computeWrapperTaints in class WrapperPropagationRule
      Parameters:
      d1 - The context (abstraction at the method's start node)
      iStmt - The call statement the taint wrapper shall check for well- known methods that introduce black-box taint propagation
      source - The taint source
      Returns:
      The taints computed by the wrapper
    • checkAndPropagateAlias

      protected void checkAndPropagateAlias(Abstraction d1, soot.jimple.Stmt iStmt, Set<Abstraction> resWithAliases, Abstraction abs)
      Starts alias tracking for the results of a taint wrapper if necessary
      Overrides:
      checkAndPropagateAlias in class WrapperPropagationRule
      Parameters:
      d1 - The context in which the wrapped method was called
      iStmt - The call site
      resWithAliases - The resulting taint abstractions generated by the wrapper
      abs - The original incoming taint abstraction