mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
Java: Added Accessor sink for MVEL injections
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
package org.mvel2.compiler;
|
||||
|
||||
import org.mvel2.integration.VariableResolverFactory;
|
||||
|
||||
public interface Accessor {
|
||||
public Object getValue(Object ctx, Object elCtx, VariableResolverFactory factory);
|
||||
}
|
||||
@@ -5,4 +5,5 @@ import org.mvel2.integration.VariableResolverFactory;
|
||||
public class CompiledExpression implements ExecutableStatement {
|
||||
public Object getDirectValue(Object staticContext, VariableResolverFactory factory) { return null; }
|
||||
public Object getValue(Object staticContext, VariableResolverFactory factory) { return null; }
|
||||
public Object getValue(Object ctx, Object elCtx, VariableResolverFactory factory) { return null; }
|
||||
}
|
||||
@@ -2,6 +2,6 @@ package org.mvel2.compiler;
|
||||
|
||||
import org.mvel2.integration.VariableResolverFactory;
|
||||
|
||||
public interface ExecutableStatement {
|
||||
public interface ExecutableStatement extends Accessor {
|
||||
public Object getValue(Object staticContext, VariableResolverFactory factory);
|
||||
}
|
||||
Reference in New Issue
Block a user