27 lines
622 B
Java
27 lines
622 B
Java
package org.owasp.webgoat;
|
|
|
|
import java.io.IOException;
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
import org.junit.jupiter.api.Test;
|
|
|
|
public class SSRFIntegrationTest extends IntegrationTest {
|
|
|
|
@Test
|
|
public void runTests() throws IOException {
|
|
startLesson("SSRF");
|
|
|
|
Map<String, Object> params = new HashMap<>();
|
|
params.clear();
|
|
params.put("url", "images/jerry.png");
|
|
|
|
checkAssignment(url("/WebGoat/SSRF/task1"), params, true);
|
|
params.clear();
|
|
params.put("url", "http://ifconfig.pro");
|
|
|
|
checkAssignment(url("/WebGoat/SSRF/task2"), params, true);
|
|
|
|
checkResults("/SSRF/");
|
|
}
|
|
}
|