In CSRF-3 use POST instead of GET to prevent solving the assignment just by opening the URL in a new tab
This commit is contained in:
parent
27125acd22
commit
97f66545e0
@ -27,7 +27,7 @@ public class CSRFGetFlag extends Endpoint {
|
||||
@Autowired
|
||||
private PluginMessages pluginMessages;
|
||||
|
||||
@RequestMapping(produces = {"application/json"}, method = RequestMethod.GET)
|
||||
@RequestMapping(produces = {"application/json"}, method = RequestMethod.POST)
|
||||
@ResponseBody
|
||||
public Map<String, Object> invoke(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
<div class="adoc-content" th:replace="doc:CSRF_Get_Flag.adoc"></div>
|
||||
|
||||
<form accept-charset="UNKNOWN" id="basic-csrf-get"
|
||||
method="GET" name="form1"
|
||||
method="POST" name="form1"
|
||||
target="_blank"
|
||||
successCallback=""
|
||||
action="/WebGoat/csrf/basic-get-flag"
|
||||
|
Loading…
x
Reference in New Issue
Block a user