@@ -55,8 +55,8 @@ public void testSsrfDetectorWithRedirectTo127IP() throws MalformedURLException {
5555 // Setup context :
5656 setContextAndLifecycle ("http://ssrf-redirects.testssandbox.com/ssrf-test" );
5757
58- URLCollector .report (new URL ("http://ssrf-redirects.testssandbox.com/ssrf-test" ), "test" );
59- RedirectCollector .report (new URL ("http://ssrf-redirects.testssandbox.com/ssrf-test" ), new URL ("http://127.0.0.1:8080" ), "test" );
58+ URLCollector .report (new URL ("http://ssrf-redirects.testssandbox.com/ssrf-test" ));
59+ RedirectCollector .report (new URL ("http://ssrf-redirects.testssandbox.com/ssrf-test" ), new URL ("http://127.0.0.1:8080" ));
6060 Attack attackData = SSRFDetector .run (
6161 "127.0.0.1" , 8080 ,
6262 List .of ("127.0.0.1" ),
@@ -79,8 +79,8 @@ public void testSsrfDetectorWithRedirectTo127IPButHostnameCapitalizationDifferen
7979 // Setup context :
8080 setContextAndLifecycle ("http://Ssrf-redirects.testssandbox.com/ssrf-test" );
8181
82- URLCollector .report (new URL ("http://Ssrf-redirects.testssandbox.com/ssrf-test" ), "test" );
83- RedirectCollector .report (new URL ("http://ssrf-Redirects.testssandbox.com/ssrf-test" ), new URL ("http://127.0.0.1:8080" ), "test" );
82+ URLCollector .report (new URL ("http://Ssrf-redirects.testssandbox.com/ssrf-test" ));
83+ RedirectCollector .report (new URL ("http://ssrf-Redirects.testssandbox.com/ssrf-test" ), new URL ("http://127.0.0.1:8080" ));
8484 Attack attackData = SSRFDetector .run (
8585 "127.0.0.1" , 8080 ,
8686 List .of ("127.0.0.1" ),
@@ -103,8 +103,8 @@ public void testSsrfDetectorWithRedirectToLocalhost() throws MalformedURLExcepti
103103 // Setup context :
104104 setContextAndLifecycle ("http://ssrf-redirects.testssandbox.com/" );
105105
106- URLCollector .report (new URL ("http://ssrf-redirects.testssandbox.com/ssrf-test" ), "test" );
107- RedirectCollector .report (new URL ("http://ssrf-redirects.testssandbox.com/ssrf-test" ), new URL ("http://localhost" ), "test" );
106+ URLCollector .report (new URL ("http://ssrf-redirects.testssandbox.com/ssrf-test" ));
107+ RedirectCollector .report (new URL ("http://ssrf-redirects.testssandbox.com/ssrf-test" ), new URL ("http://localhost" ));
108108 Attack attackData = SSRFDetector .run (
109109 "localhost" , 80 ,
110110 List .of ("127.0.0.1" ),
@@ -130,8 +130,8 @@ public void testSsrfDetectorWithRedirectToLocalhostButIsRequestToItself() throws
130130 "http://ssrf-redirects.testssandbox.com/examplesite" )); // url
131131
132132
133- URLCollector .report (new URL ("http://ssrf-redirects.testssandbox.com/ssrf-test" ), "test" );
134- RedirectCollector .report (new URL ("http://ssrf-redirects.testssandbox.com/ssrf-test" ), new URL ("http://localhost" ), "test" );
133+ URLCollector .report (new URL ("http://ssrf-redirects.testssandbox.com/ssrf-test" ));
134+ RedirectCollector .report (new URL ("http://ssrf-redirects.testssandbox.com/ssrf-test" ), new URL ("http://localhost" ));
135135 Attack attackData = SSRFDetector .run (
136136 "localhost" , 80 ,
137137 List .of ("127.0.0.1" ),
@@ -147,8 +147,8 @@ public void testSsrfDetectorWithServiceHostnameInRedirect() throws MalformedURLE
147147 // Setup context :
148148 setContextAndLifecycle ("http://mysql-database/ssrf-test" );
149149
150- URLCollector .report (new URL ("http://mysql-database/ssrf-test" ), "test" );
151- RedirectCollector .report (new URL ("http://mysql-database/ssrf-test" ), new URL ("http://127.0.0.1:8080" ), "test" );
150+ URLCollector .report (new URL ("http://mysql-database/ssrf-test" ));
151+ RedirectCollector .report (new URL ("http://mysql-database/ssrf-test" ), new URL ("http://127.0.0.1:8080" ));
152152 Attack attackData = SSRFDetector .run (
153153 "127.0.0.1" , 8080 ,
154154 List .of ("127.0.0.1" ),
@@ -164,8 +164,8 @@ public void testSsrfDetectorForcedProtectionOff() throws MalformedURLException {
164164 // Setup context :
165165 setContextAndLifecycle ("http://ssrf-redirects.testssandbox.com/" , "/api2/forced-off-route" );
166166
167- URLCollector .report (new URL ("http://ssrf-redirects.testssandbox.com/ssrf-test" ), "test" );
168- RedirectCollector .report (new URL ("http://ssrf-redirects.testssandbox.com/ssrf-test" ), new URL ("http://localhost" ), "test" );
167+ URLCollector .report (new URL ("http://ssrf-redirects.testssandbox.com/ssrf-test" ));
168+ RedirectCollector .report (new URL ("http://ssrf-redirects.testssandbox.com/ssrf-test" ), new URL ("http://localhost" ));
169169 Attack attackData = SSRFDetector .run (
170170 "localhost" , 80 ,
171171 List .of ("127.0.0.1" ),
0 commit comments