提交 93b8e003 编写于 作者: O Oleg Nenashev

[SECURITY-218] - Fix Gadgets to make Spring test running

上级 26cf74ea
......@@ -34,11 +34,11 @@ import javassist.ClassClassPath;
import javassist.ClassPool;
import javassist.CtClass;
import org.apache.xalan.processor.TransformerFactoryImpl;
import org.apache.xalan.xsltc.DOM;
import org.apache.xalan.xsltc.TransletException;
import org.apache.xalan.xsltc.runtime.AbstractTranslet;
import org.apache.xalan.xsltc.trax.TemplatesImpl;
import org.apache.xalan.xsltc.trax.TransformerFactoryImpl;
import org.apache.xml.dtm.DTMAxisIterator;
import org.apache.xml.serializer.SerializationHandler;
......
......@@ -59,7 +59,7 @@ public class Security218BlackBoxTest {
@Issue("SECURITY-218")
public void probeCommonsCollections2() throws Exception {
//TODO: Payload content issue
probe(Payload.CommonsCollections2, -1);
probe(Payload.CommonsCollections2, PayloadCaller.EXIT_CODE_REJECTED);
}
@PresetData(PresetData.DataSet.ANONYMOUS_READONLY)
......@@ -75,9 +75,8 @@ public class Security218BlackBoxTest {
@PresetData(PresetData.DataSet.ANONYMOUS_READONLY)
@Test
@Issue("SECURITY-218")
@Ignore
public void probeSpring1() throws Exception {
probe(Payload.Spring1, PayloadCaller.EXIT_CODE_OK);
probe(Payload.Spring1, -1);
}
private void probe(Payload payload, int expectedResultCode) throws Exception {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册