|
|
|
@ -184,7 +184,8 @@
|
|
|
|
|
<div class="lesson-page-wrapper">
|
|
|
|
|
<div class="adoc-content" th:replace="doc:CrossSiteScripting_content6.adoc"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="lesson-page-wrapper">
|
|
|
|
|
|
|
|
|
|
<div class="lesson-page-wrapper">
|
|
|
|
|
<!-- reuse this lesson-page-wrapper block for each 'page' of content in your lesson -->
|
|
|
|
|
<!-- include content here. Content will be presented via asciidocs files,
|
|
|
|
|
which you put in src/main/resources/plugin/lessonplans/{lang}/{fileName}.adoc -->
|
|
|
|
@ -208,133 +209,161 @@
|
|
|
|
|
<!-- ... of course, you can move them if you want to, but that will not look consistent to other lessons -->
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="lesson-page-wrapper">
|
|
|
|
|
|
|
|
|
|
<div class="lesson-page-wrapper">
|
|
|
|
|
<!-- reuse this lesson-page-wrapper block for each 'page' of content in your lesson -->
|
|
|
|
|
<!-- include content here. Content will be presented via asciidocs files,
|
|
|
|
|
which you put in src/main/resources/plugin/lessonplans/{lang}/{fileName}.adoc -->
|
|
|
|
|
<div class="adoc-content" th:replace="doc:CrossSiteScripting_content6b.adoc"></div>
|
|
|
|
|
<div class="attack-container">
|
|
|
|
|
<div class="assignment-success"><i class="fa fa-2 fa-check hidden" aria-hidden="true"></i></div>
|
|
|
|
|
<!-- using attack-form class on your form, will allow your request to be ajaxified and stay within the display framework for webgoat -->
|
|
|
|
|
<!-- using attack-form class on your form will allow your request to be ajaxified and stay within the display framework for webgoat -->
|
|
|
|
|
<!-- you can write your own custom forms, but standard form submission will take you to your endpoint and outside of the WebGoat framework -->
|
|
|
|
|
<!-- of course, you can write your own ajax submission /handling in your own javascript if you like -->
|
|
|
|
|
<form class="attack-form" accept-charset="UNKNOWN"
|
|
|
|
|
method="POST" name="DOMFollowUp"
|
|
|
|
|
action="/WebGoat/CrossSiteScripting/dom-follow-up"
|
|
|
|
|
enctype="application/json;charset=UTF-8">
|
|
|
|
|
<input name="successMessage" value="" type="TEXT" />
|
|
|
|
|
<input name="submitMessage" value="Submit" type="SUBMIT"/>
|
|
|
|
|
</form>
|
|
|
|
|
<!-- do not remove the two following div's, this is where your feedback/output will land -->
|
|
|
|
|
<div class="attack-feedback"></div>
|
|
|
|
|
<div class="attack-output"></div>
|
|
|
|
|
<!-- ... of course, you can move them if you want to, but that will not look consistent to other lessons -->
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="lesson-page-wrapper">
|
|
|
|
|
<!-- reuse this lesson-page-wrapper block for each 'page' of content in your lesson -->
|
|
|
|
|
<!-- include content here, or can be placed in another location. Content will be presented via asciidocs files,
|
|
|
|
|
which you put in src/main/resources/plugin/lessonplans/{lang}/{fileName}.adoc -->
|
|
|
|
|
<div class="adoc-content" th:replace="doc:CrossSiteScripting_content7.adoc"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="lesson-page-wrapper">
|
|
|
|
|
<!-- reuse this lesson-page-wrapper block for each 'page' of content in your lesson -->
|
|
|
|
|
<!-- include content here, or can be placed in another location. Content will be presented via asciidocs files,
|
|
|
|
|
which you put in src/main/resources/plugin/lessonplans/{lang}/{fileName}.adoc -->
|
|
|
|
|
<div class="adoc-content" th:replace="doc:CrossSiteScripting_content8.adoc"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="lesson-page-wrapper">
|
|
|
|
|
<!-- reuse this lesson-page-wrapper block for each 'page' of content in your lesson -->
|
|
|
|
|
<!-- include content here, or can be placed in another location. Content will be presented via asciidocs files,
|
|
|
|
|
which you put in src/main/resources/plugin/lessonplans/{lang}/{fileName}.adoc -->
|
|
|
|
|
<div class="adoc-content" th:replace="doc:CrossSiteScripting_content9.adoc"></div>
|
|
|
|
|
<img align="middle" th:src="@{/plugin_lessons/plugin/CrossSiteScripting/images/Reflected-XSS.png}" />
|
|
|
|
|
</div>
|
|
|
|
|
<!--<div class="lesson-page-wrapper">-->
|
|
|
|
|
<!--<!– reuse this lesson-page-wrapper block for each 'page' of content in your lesson –>-->
|
|
|
|
|
<!--<!– include content here, or can be placed in another location. Content will be presented via asciidocs files,-->
|
|
|
|
|
<!--which you put in src/main/resources/plugin/lessonplans/{lang}/{fileName}.adoc –>-->
|
|
|
|
|
<!--<div class="adoc-content" th:replace="doc:CrossSiteScripting_content8.adoc"></div>-->
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
<!--<div class="lesson-page-wrapper">-->
|
|
|
|
|
<!--<!– reuse this lesson-page-wrapper block for each 'page' of content in your lesson –>-->
|
|
|
|
|
<!--<!– include content here, or can be placed in another location. Content will be presented via asciidocs files,-->
|
|
|
|
|
<!--which you put in src/main/resources/plugin/lessonplans/{lang}/{fileName}.adoc –>-->
|
|
|
|
|
<!--<div class="adoc-content" th:replace="doc:CrossSiteScripting_content9.adoc"></div>-->
|
|
|
|
|
<!--<img align="middle" th:src="@{/plugin_lessons/plugin/CrossSiteScripting/images/Reflected-XSS.png}" />-->
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="lesson-page-wrapper">
|
|
|
|
|
<!-- reuse this lesson-page-wrapper block for each 'page' of content in your lesson -->
|
|
|
|
|
<!-- include content here. Content will be presented via asciidocs files,
|
|
|
|
|
which you put in src/main/resources/plugin/lessonplans/{lang}/{fileName}.adoc -->
|
|
|
|
|
<div class="adoc-content"
|
|
|
|
|
th:replace="doc:CrossSiteScripting_content9a.adoc"></div>
|
|
|
|
|
<div class="attack-container">
|
|
|
|
|
<div class="assignment-success"><i class="fa fa-2 fa-check hidden" aria-hidden="true"></i></div>
|
|
|
|
|
<!-- using attack-form class on your form, will allow your request to be ajaxified and stay within the display framework for webgoat -->
|
|
|
|
|
<!--<div class="lesson-page-wrapper">-->
|
|
|
|
|
<!--<!– reuse this lesson-page-wrapper block for each 'page' of content in your lesson –>-->
|
|
|
|
|
<!--<!– include content here. Content will be presented via asciidocs files,-->
|
|
|
|
|
<!--which you put in src/main/resources/plugin/lessonplans/{lang}/{fileName}.adoc –>-->
|
|
|
|
|
<!--<div class="adoc-content"-->
|
|
|
|
|
<!--th:replace="doc:CrossSiteScripting_content9a.adoc"></div>-->
|
|
|
|
|
<!--<div class="attack-container">-->
|
|
|
|
|
<!--<div class="assignment-success"><i class="fa fa-2 fa-check hidden" aria-hidden="true"></i></div>-->
|
|
|
|
|
<!--<!– using attack-form class on your form, will allow your request to be ajaxified and stay within the display framework for webgoat –>-->
|
|
|
|
|
|
|
|
|
|
<!-- using attack-form class on your form will allow your request to be ajaxified and stay within the display framework for webgoat -->
|
|
|
|
|
<!-- you can write your own custom forms, but standard form submission will take you to your endpoint and outside of the WebGoat framework -->
|
|
|
|
|
<!-- of course, you can write your own ajax submission /handling in your own javascript if you like -->
|
|
|
|
|
<form class="attack-form" accept-charset="UNKNOWN" method="POST"
|
|
|
|
|
name="form" action="/WebGoat/CrossSiteScripting/attack9a"
|
|
|
|
|
enctype="application/json;charset=UTF-8">
|
|
|
|
|
<!--<!– using attack-form class on your form will allow your request to be ajaxified and stay within the display framework for webgoat –>-->
|
|
|
|
|
<!--<!– you can write your own custom forms, but standard form submission will take you to your endpoint and outside of the WebGoat framework –>-->
|
|
|
|
|
<!--<!– of course, you can write your own ajax submission /handling in your own javascript if you like –>-->
|
|
|
|
|
<!--<form class="attack-form" accept-charset="UNKNOWN" method="POST"-->
|
|
|
|
|
<!--name="form" action="/WebGoat/CrossSiteScripting/attack9a"-->
|
|
|
|
|
<!--enctype="application/json;charset=UTF-8">-->
|
|
|
|
|
|
|
|
|
|
<table cellspacing="0" cellpadding="0" border="0">
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>Title:</td>
|
|
|
|
|
<td><input name="title" value="" type="TEXT" /></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td valign="TOP">Message:</td>
|
|
|
|
|
<td><textarea cols="60" name="message" rows="5"></textarea></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
<p>
|
|
|
|
|
<input name="SUBMIT" value="Submit" type="SUBMIT" />
|
|
|
|
|
</p>
|
|
|
|
|
<hr />
|
|
|
|
|
<hr />
|
|
|
|
|
<h1>Message List</h1>
|
|
|
|
|
<table cellspacing="0" cellpadding="0" border="0">
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><a href="#" style="cursor: hand" link="attack?Num=1"><u></u></a></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</form>
|
|
|
|
|
<!--<table cellspacing="0" cellpadding="0" border="0">-->
|
|
|
|
|
<!--<tbody>-->
|
|
|
|
|
<!--<tr>-->
|
|
|
|
|
<!--<td>Title:</td>-->
|
|
|
|
|
<!--<td><input name="title" value="" type="TEXT" /></td>-->
|
|
|
|
|
<!--</tr>-->
|
|
|
|
|
<!--<tr>-->
|
|
|
|
|
<!--<td valign="TOP">Message:</td>-->
|
|
|
|
|
<!--<td><textarea cols="60" name="message" rows="5"></textarea></td>-->
|
|
|
|
|
<!--</tr>-->
|
|
|
|
|
<!--</tbody>-->
|
|
|
|
|
<!--</table>-->
|
|
|
|
|
<!--<p>-->
|
|
|
|
|
<!--<input name="SUBMIT" value="Submit" type="SUBMIT" />-->
|
|
|
|
|
<!--</p>-->
|
|
|
|
|
<!--<hr />-->
|
|
|
|
|
<!--<hr />-->
|
|
|
|
|
<!--<h1>Message List</h1>-->
|
|
|
|
|
<!--<table cellspacing="0" cellpadding="0" border="0">-->
|
|
|
|
|
<!--<tbody>-->
|
|
|
|
|
<!--<tr>-->
|
|
|
|
|
<!--<td><a href="#" style="cursor: hand" link="attack?Num=1"><u></u></a></td>-->
|
|
|
|
|
<!--</tr>-->
|
|
|
|
|
<!--</tbody>-->
|
|
|
|
|
<!--</table>-->
|
|
|
|
|
<!--</form>-->
|
|
|
|
|
|
|
|
|
|
<!-- do not remove the two following div's, this is where your feedback/output will land -->
|
|
|
|
|
<div class="attack-feedback"></div>
|
|
|
|
|
<div class="attack-output"></div>
|
|
|
|
|
<!-- ... of course, you can move them if you want to, but that will not look consistent to other lessons -->
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!--<!– do not remove the two following div's, this is where your feedback/output will land –>-->
|
|
|
|
|
<!--<div class="attack-feedback"></div>-->
|
|
|
|
|
<!--<div class="attack-output"></div>-->
|
|
|
|
|
<!--<!– ... of course, you can move them if you want to, but that will not look consistent to other lessons –>-->
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="lesson-page-wrapper">
|
|
|
|
|
<!-- reuse this lesson-page-wrapper block for each 'page' of content in your lesson -->
|
|
|
|
|
<!-- include content here, or can be placed in another location. Content will be presented via asciidocs files,
|
|
|
|
|
which you put in src/main/resources/plugin/lessonplans/{lang}/{fileName}.adoc -->
|
|
|
|
|
<div class="adoc-content" th:replace="doc:CrossSiteScripting_content10.adoc"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="lesson-page-wrapper">
|
|
|
|
|
<!-- reuse this lesson-page-wrapper block for each 'page' of content in your lesson -->
|
|
|
|
|
<!-- include content here, or can be placed in another location. Content will be presented via asciidocs files,
|
|
|
|
|
which you put in src/main/resources/plugin/lessonplans/{lang}/{fileName}.adoc -->
|
|
|
|
|
<div class="adoc-content" th:replace="doc:CrossSiteScripting_content11.adoc"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="lesson-page-wrapper">
|
|
|
|
|
<!-- reuse this lesson-page-wrapper block for each 'page' of content in your lesson -->
|
|
|
|
|
<!-- include content here, or can be placed in another location. Content will be presented via asciidocs files,
|
|
|
|
|
which you put in src/main/resources/plugin/lessonplans/{lang}/{fileName}.adoc -->
|
|
|
|
|
<div class="adoc-content" th:replace="doc:CrossSiteScripting_content12.adoc"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="lesson-page-wrapper">
|
|
|
|
|
<!-- reuse this lesson-page-wrapper block for each 'page' of content in your lesson -->
|
|
|
|
|
<!-- include content here, or can be placed in another location. Content will be presented via asciidocs files,
|
|
|
|
|
which you put in src/main/resources/plugin/lessonplans/{lang}/{fileName}.adoc -->
|
|
|
|
|
<div class="adoc-content" th:replace="doc:CrossSiteScripting_content13.adoc"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="lesson-page-wrapper">
|
|
|
|
|
<!-- reuse this lesson-page-wrapper block for each 'page' of content in your lesson -->
|
|
|
|
|
<!-- include content here, or can be placed in another location. Content will be presented via asciidocs files,
|
|
|
|
|
which you put in src/main/resources/plugin/lessonplans/{lang}/{fileName}.adoc -->
|
|
|
|
|
<div class="adoc-content" th:replace="doc:CrossSiteScripting_content13a.adoc"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="lesson-page-wrapper">
|
|
|
|
|
<!-- reuse this lesson-page-wrapper block for each 'page' of content in your lesson -->
|
|
|
|
|
<!-- include content here, or can be placed in another location. Content will be presented via asciidocs files,
|
|
|
|
|
which you put in src/main/resources/plugin/lessonplans/{lang}/{fileName}.adoc -->
|
|
|
|
|
<div class="adoc-content" th:replace="doc:CrossSiteScripting_content14.adoc"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="lesson-page-wrapper">
|
|
|
|
|
<!-- reuse this lesson-page-wrapper block for each 'page' of content in your lesson -->
|
|
|
|
|
<!-- include content here, or can be placed in another location. Content will be presented via asciidocs files,
|
|
|
|
|
which you put in src/main/resources/plugin/lessonplans/{lang}/{fileName}.adoc -->
|
|
|
|
|
<div class="adoc-content" th:replace="doc:CrossSiteScripting_content15.adoc"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="lesson-page-wrapper">
|
|
|
|
|
<!-- reuse this lesson-page-wrapper block for each 'page' of content in your lesson -->
|
|
|
|
|
<!-- include content here, or can be placed in another location. Content will be presented via asciidocs files,
|
|
|
|
|
which you put in src/main/resources/plugin/lessonplans/{lang}/{fileName}.adoc -->
|
|
|
|
|
<div class="adoc-content" th:replace="doc:CrossSiteScripting_content15a.adoc"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="lesson-page-wrapper">
|
|
|
|
|
<!-- reuse this lesson-page-wrapper block for each 'page' of content in your lesson -->
|
|
|
|
|
<!-- include content here, or can be placed in another location. Content will be presented via asciidocs files,
|
|
|
|
|
which you put in src/main/resources/plugin/lessonplans/{lang}/{fileName}.adoc -->
|
|
|
|
|
<div class="adoc-content" th:replace="doc:CrossSiteScripting_content16.adoc"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<!--<div class="lesson-page-wrapper">-->
|
|
|
|
|
<!--<!– reuse this lesson-page-wrapper block for each 'page' of content in your lesson –>-->
|
|
|
|
|
<!--<!– include content here, or can be placed in another location. Content will be presented via asciidocs files,-->
|
|
|
|
|
<!--which you put in src/main/resources/plugin/lessonplans/{lang}/{fileName}.adoc –>-->
|
|
|
|
|
<!--<div class="adoc-content" th:replace="doc:CrossSiteScripting_content10.adoc"></div>-->
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
<!--<div class="lesson-page-wrapper">-->
|
|
|
|
|
<!--<!– reuse this lesson-page-wrapper block for each 'page' of content in your lesson –>-->
|
|
|
|
|
<!--<!– include content here, or can be placed in another location. Content will be presented via asciidocs files,-->
|
|
|
|
|
<!--which you put in src/main/resources/plugin/lessonplans/{lang}/{fileName}.adoc –>-->
|
|
|
|
|
<!--<div class="adoc-content" th:replace="doc:CrossSiteScripting_content11.adoc"></div>-->
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
<!--<div class="lesson-page-wrapper">-->
|
|
|
|
|
<!--<!– reuse this lesson-page-wrapper block for each 'page' of content in your lesson –>-->
|
|
|
|
|
<!--<!– include content here, or can be placed in another location. Content will be presented via asciidocs files,-->
|
|
|
|
|
<!--which you put in src/main/resources/plugin/lessonplans/{lang}/{fileName}.adoc –>-->
|
|
|
|
|
<!--<div class="adoc-content" th:replace="doc:CrossSiteScripting_content12.adoc"></div>-->
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
<!--<div class="lesson-page-wrapper">-->
|
|
|
|
|
<!--<!– reuse this lesson-page-wrapper block for each 'page' of content in your lesson –>-->
|
|
|
|
|
<!--<!– include content here, or can be placed in another location. Content will be presented via asciidocs files,-->
|
|
|
|
|
<!--which you put in src/main/resources/plugin/lessonplans/{lang}/{fileName}.adoc –>-->
|
|
|
|
|
<!--<div class="adoc-content" th:replace="doc:CrossSiteScripting_content13.adoc"></div>-->
|
|
|
|
|
<!--</div> -->
|
|
|
|
|
<!--<div class="lesson-page-wrapper">-->
|
|
|
|
|
<!--<!– reuse this lesson-page-wrapper block for each 'page' of content in your lesson –>-->
|
|
|
|
|
<!--<!– include content here, or can be placed in another location. Content will be presented via asciidocs files,-->
|
|
|
|
|
<!--which you put in src/main/resources/plugin/lessonplans/{lang}/{fileName}.adoc –>-->
|
|
|
|
|
<!--<div class="adoc-content" th:replace="doc:CrossSiteScripting_content13a.adoc"></div>-->
|
|
|
|
|
<!--</div> -->
|
|
|
|
|
<!--<div class="lesson-page-wrapper">-->
|
|
|
|
|
<!--<!– reuse this lesson-page-wrapper block for each 'page' of content in your lesson –>-->
|
|
|
|
|
<!--<!– include content here, or can be placed in another location. Content will be presented via asciidocs files,-->
|
|
|
|
|
<!--which you put in src/main/resources/plugin/lessonplans/{lang}/{fileName}.adoc –>-->
|
|
|
|
|
<!--<div class="adoc-content" th:replace="doc:CrossSiteScripting_content14.adoc"></div>-->
|
|
|
|
|
<!--</div> -->
|
|
|
|
|
<!--<div class="lesson-page-wrapper">-->
|
|
|
|
|
<!--<!– reuse this lesson-page-wrapper block for each 'page' of content in your lesson –>-->
|
|
|
|
|
<!--<!– include content here, or can be placed in another location. Content will be presented via asciidocs files,-->
|
|
|
|
|
<!--which you put in src/main/resources/plugin/lessonplans/{lang}/{fileName}.adoc –>-->
|
|
|
|
|
<!--<div class="adoc-content" th:replace="doc:CrossSiteScripting_content15.adoc"></div>-->
|
|
|
|
|
<!--</div> -->
|
|
|
|
|
<!--<div class="lesson-page-wrapper">-->
|
|
|
|
|
<!--<!– reuse this lesson-page-wrapper block for each 'page' of content in your lesson –>-->
|
|
|
|
|
<!--<!– include content here, or can be placed in another location. Content will be presented via asciidocs files,-->
|
|
|
|
|
<!--which you put in src/main/resources/plugin/lessonplans/{lang}/{fileName}.adoc –>-->
|
|
|
|
|
<!--<div class="adoc-content" th:replace="doc:CrossSiteScripting_content15a.adoc"></div>-->
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
|
|
|
|
|
<!--<div class="lesson-page-wrapper">-->
|
|
|
|
|
<!--<!– reuse this lesson-page-wrapper block for each 'page' of content in your lesson –>-->
|
|
|
|
|
<!--<!– include content here, or can be placed in another location. Content will be presented via asciidocs files,-->
|
|
|
|
|
<!--which you put in src/main/resources/plugin/lessonplans/{lang}/{fileName}.adoc –>-->
|
|
|
|
|
<!--<div class="adoc-content" th:replace="doc:CrossSiteScripting_content16.adoc"></div>-->
|
|
|
|
|
<!--</div> -->
|
|
|
|
|
|
|
|
|
|
</html>
|