mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Trust Boundary Work
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import java.io.IOException;
|
||||
import javax.servlet.http.HttpServlet;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
public class TrustBoundaryViolations extends HttpServlet {
|
||||
public void doGet(HttpServletRequest request, HttpServletResponse response) {
|
||||
String input = request.getParameter("input");
|
||||
|
||||
request.getSession().setAttribute("input", input); // $ hasTaintFlow
|
||||
}
|
||||
}
|
||||
0
java/ql/test/query-tests/security/CWE-501/options
Normal file
0
java/ql/test/query-tests/security/CWE-501/options
Normal file
Reference in New Issue
Block a user