mirror of
https://github.com/github/codeql.git
synced 2026-05-05 05:35:13 +02:00
Java: convert RequestForgery test to .qlref
This commit is contained in:
@@ -11,8 +11,8 @@ public class JakartaWsSSRF extends HttpServlet {
|
||||
protected void doGet(HttpServletRequest request, HttpServletResponse response)
|
||||
throws ServletException, IOException {
|
||||
Client client = ClientBuilder.newClient();
|
||||
String url = request.getParameter("url");
|
||||
client.target(url); // $ SSRF
|
||||
String url = request.getParameter("url"); // $ Source
|
||||
client.target(url); // $ Alert
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user