com.h3xstream.findsecbugs.injection.ldap
Class JndiLdapInjectionSource
java.lang.Object
com.h3xstream.findsecbugs.injection.ldap.JndiLdapInjectionSource
- All Implemented Interfaces:
- InjectionSource
public class JndiLdapInjectionSource
- extends Object
- implements InjectionSource
|
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 |
JndiLdapInjectionSource
public JndiLdapInjectionSource()
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 visitcpg - 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.