Skip to content

Commit

Permalink
Updated challenge text's CSRF-token parameter name
Browse files Browse the repository at this point in the history
Changed the challenge text's POST parameter from csrf to csrfToken, which is what is actually validated on the server.
  • Loading branch information
argillander authored and markdenihan committed Feb 1, 2021
1 parent 93fbe71 commit fd5121f
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ if (request.getSession() != null)
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Security Shepherd - <%= i18nLevelName %></title>
<link href="../css/lessonCss/theCss.css" rel="stylesheet" type="text/css" media="screen" />
<link href="../css/lessonCss/theCss.css" rel="stylesheet" type="text/css" media="screen" />

</head>
<body>
<script type="text/javascript" src="../js/jquery.js"></script>
<script type="text/javascript" src="../js/clipboard-js/clipboard.min.js"></script>
<script type="text/javascript" src="../js/clipboard-js/tooltips.js"></script>
<script type="text/javascript" src="../js/jquery.js"></script>
<script type="text/javascript" src="../js/clipboard-js/clipboard.min.js"></script>
<script type="text/javascript" src="../js/clipboard-js/tooltips.js"></script>
<script type="text/javascript" src="../js/clipboard-js/clipboard-events.js"></script>
<div id="contentDiv">
<h2 class="title"><%= i18nLevelName %></h2>
Expand All @@ -87,7 +87,7 @@ if (request.getSession() != null)
<br/>
<a> POST /user/csrfchallengeseven/plusplus</a>
<br/>
<%= bundle.getString("challenge.withTheseParameters") %> <a>userId = <%= bundle.getString("challenge.userIdExample") %></a> & <a>csrf = <%= bundle.getString("challenge.yourCsrfTokenCamelCase") %></a>
<%= bundle.getString("challenge.withTheseParameters") %> <a>userId = <%= bundle.getString("challenge.userIdExample") %></a> & <a>csrfToken = <%= bundle.getString("challenge.yourCsrfTokenCamelCase") %></a>
<br/>
<br/>
<%= bundle.getString("challenge.whereIdIsUserBeenIncremented.1") %> <%= bundle.getString("challenge.userIdExample") %><%= bundle.getString("challenge.whereIdIsUserBeenIncremented.2") %> <%=bundle.getString("challenge.yourIdIs") %> <%= userId %> <%= bundle.getString("challenge.yourIdIs.1") %>
Expand Down

0 comments on commit fd5121f

Please sign in to comment.