Class SQLInjectionFixComposer

java.lang.Object
io.codemodder.remediation.sqlinjection.SQLInjectionFixComposer

public final class SQLInjectionFixComposer extends Object
Composes several transformations related to SQL injections.
  • Method Details

    • checkAndFix

      public static boolean checkAndFix(MethodOrConstructor m)
      Given a MethodCallExpr related to executing JDBC API SQL queries (i.e. prepareStatement(), executeQuery(), etc.), parameterize data injections or add a validation step for structural injections.
    • match

      public static boolean match(MethodOrConstructor methodOrConstructor)
      Check if the MethodCallExpr is a JDBC API query method that is a target of a SQL injection transformation.