com.h3xstream.findsecbugs.injection.ldap
Class UnboundIdLdapInjectionSource
java.lang.Object
com.h3xstream.findsecbugs.injection.ldap.UnboundIdLdapInjectionSource
- All Implemented Interfaces:
- InjectionSource
public class UnboundIdLdapInjectionSource
- extends Object
- implements InjectionSource
UnboundId API offers both a Typed and a string based filters.
This detector only look at filter parameters from query..
|
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 |
UnboundIdLdapInjectionSource
public UnboundIdLdapInjectionSource()
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.