com.h3xstream.findsecbugs.injection.sql
Class JdoInjectionSource

java.lang.Object
  extended by com.h3xstream.findsecbugs.injection.sql.JdoInjectionSource
All Implemented Interfaces:
InjectionSource

public class JdoInjectionSource
extends Object
implements InjectionSource

API reference : http://db.apache.org/jdo/index.html


Field Summary
protected static String SQL_INJECTION_TYPE
           
 
Constructor Summary
JdoInjectionSource()
           
 
Method Summary
 InjectionPoint getInjectableParameters(org.apache.bcel.generic.InvokeInstruction ins, org.apache.bcel.generic.ConstantPoolGen cpg, org.apache.bcel.generic.InstructionHandle insHandle)
          The implementation should identify method that are susceptible to injection and return parameters index that can injected.
 boolean isCandidate(org.apache.bcel.generic.ConstantPoolGen cpg)
          Before starting intensive analysis on variable flow and iterating on every instruction, this function will make sure the injection type can occurs in the current class base on its constant pool gen.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SQL_INJECTION_TYPE

protected static final String SQL_INJECTION_TYPE
See Also:
Constant Field Values
Constructor Detail

JdoInjectionSource

public JdoInjectionSource()
Method Detail

isCandidate

public boolean isCandidate(org.apache.bcel.generic.ConstantPoolGen cpg)
Description copied from interface: InjectionSource
Before starting intensive analysis on variable flow and iterating on every instruction, this function will make sure the injection type can occurs in the current class base on its constant pool gen. All classes dependencies can be found in this pool.

Specified by:
isCandidate in interface InjectionSource
Returns:

getInjectableParameters

public InjectionPoint getInjectableParameters(org.apache.bcel.generic.InvokeInstruction ins,
                                              org.apache.bcel.generic.ConstantPoolGen cpg,
                                              org.apache.bcel.generic.InstructionHandle insHandle)
Description copied from interface: InjectionSource
The implementation should identify method that are susceptible to injection and return parameters index that can injected.

Specified by:
getInjectableParameters in interface InjectionSource
Parameters:
ins - Instruction visit
cpg - ConstantPool (needed to find the class name and method name associate to instruction)
insHandle - instruction handle (needed to look at the instruction around the current instruction)
Returns:


Copyright © 2015. All rights reserved.