forked from WebGoat/WebGoat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed layout of the html tampering lesson and fixed some JavaScript…
… issues. Added a small mitigation page. Moved the lessons concerning client side validation to client side category
- Loading branch information
Showing
11 changed files
with
165 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
.../html-tampering/src/main/resources/lessonPlans/en/HtmlTampering_Mitigation.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
=== Mitigation | ||
|
||
In this simple example you noticed that the price is calculated server side and send to the server. The server | ||
accepted the input as a given and did not calculate the price again. One of the mitigations in this case is to look up | ||
the price of the television in your database and calculate the total price again. | ||
|
||
|
||
In a real application you should never rely on client side validation it is important to verify all the input | ||
send by the client. Always remember: **NEVER TRUST INPUT SEND BY A CLIENT.** | ||
|
||
'''' | ||
==== References | ||
|
||
https://www.owasp.org/index.php/Input_Validation_Cheat_Sheet |
2 changes: 1 addition & 1 deletion
2
...essons/html-tampering/src/main/resources/lessonPlans/en/HtmlTampering_Task.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
=== Try it yourself | ||
This is an internet store. Try to buy TV-s for a lower price. | ||
In an online store you ordered a new TV, try to buy one or more TVs for a lower price. |