mirror of
https://github.com/github/codeql.git
synced 2026-05-05 21:55:19 +02:00
org.kohsuke.stapler.model tests
This commit is contained in:
@@ -8,6 +8,7 @@ import javax.servlet.http.HttpServletRequest;
|
||||
import javafx.scene.web.WebEngine;
|
||||
import org.apache.commons.jelly.JellyContext;
|
||||
import org.codehaus.cargo.container.installer.ZipURLInstaller;
|
||||
import org.kohsuke.stapler.HttpResponses;
|
||||
|
||||
public class Test {
|
||||
|
||||
@@ -68,4 +69,9 @@ public class Test {
|
||||
new ZipURLInstaller((URL) source(), "", ""); // $ SSRF
|
||||
}
|
||||
|
||||
public void test(HttpResponses r) {
|
||||
// "org.kohsuke.stapler;HttpResponses;true;staticResource;(URL);;Argument[0];open-url;ai-generated"
|
||||
r.staticResource((URL) source()); // $ SSRF
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user