Merge pull request #618 from matthias-g/csrf-3-post
Do not allow trivial solution to CSRF-3
This commit is contained in:
commit
e36b4c3910
@ -27,7 +27,7 @@ public class CSRFGetFlag extends Endpoint {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private PluginMessages pluginMessages;
|
private PluginMessages pluginMessages;
|
||||||
|
|
||||||
@RequestMapping(produces = {"application/json"}, method = RequestMethod.GET)
|
@RequestMapping(produces = {"application/json"}, method = RequestMethod.POST)
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public Map<String, Object> invoke(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
|
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>
|
<div class="adoc-content" th:replace="doc:CSRF_Get_Flag.adoc"></div>
|
||||||
|
|
||||||
<form accept-charset="UNKNOWN" id="basic-csrf-get"
|
<form accept-charset="UNKNOWN" id="basic-csrf-get"
|
||||||
method="GET" name="form1"
|
method="POST" name="form1"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
successCallback=""
|
successCallback=""
|
||||||
action="/WebGoat/csrf/basic-get-flag"
|
action="/WebGoat/csrf/basic-get-flag"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user