Foreword... CopyrightThis work is Copyright © 2005, 2006, 2007 Michael Boman. This work is licensed under a Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 License. Due to restrictions of LuLu's print-on-demand services you are required to re-assign the copyright of any modifications of this page to me so a hard copy of the material can be offered. Contributors will be listed as co-authors. Exercise SolutionsExercise Solution : HTTP Basics- Go to “General -> Http Basics” in WebGoat
- Enter your name
- Set Paros to intercept requests and responses
- Click the “Go” Button
- Inspect the request data (Header, Body, Cookies etc)
- Press “Continue” to forward the request to the web server
- Inspect the response data (Header, Body, Cookies etc)
- Press “Continue” to forward the response to the browser
Exercise Solution : Input ValidationHidden fields modification - Go to “Unvalidated Parameters -> Hidden Field Tampering”
- Choose how many HDTV sets you want to buy and click “Purchase” button
- Intercept the request and change the “Price” parameter to something else, example “1”
- Submit the modified the request to the server and inspect the resulting web page
Unchecked email #1 - Go to “Unvalidated Parameters -> Unchecked Email”
- In “Questions or Comments:” box, enter a Cross Site Scripting test string (example: <script>alert("XSS");</script>)
- Click the “Send” button
- Inspect the resulting page
Unchecked email #2 - Go to “Unvalidated Parameters -> Unchecked Email”
- In “Questions or Comments:” box, enter a message (example: Hello World!)
- Click the “Send” button
- Intercept the request and modify the “to” parameter to something else (example: victim@example.com)
- Forward the modified request to the web server
- Inspect the resulting web page
Exercise Solution : Source Code Hints- Go to “Code Quality -> HTML Clues” in WebGoat
- View the source code of the page
- At line 847 the username/password is mentioned (search for FIXME)
- The username / password is admin / adminpw
Exercise Solution : Character Encoding- Go to “Insecure Storage -> Encoding Basics” in WebGoat
- Enter a string in the input field
- Press the “Go” button
- Inspect the resulting page
- Discuss the output
Exercise Solution : SQL InjectionExercise Solution : Cross Site ScriptingExercise Solution : Session AnalysisExercise Solution : Attacking Web ServicesChallenge SolutionsSolution to Challenge 1 : Web Goat ChallengeSolution to Challenge 2 : Hacme Bank #1Solution to Challenge 3 : Hacme Bank #2Solution to Challenge 4 : Hacme Bank #3Solution to Challenge 5 : Hacme Bank #4Solution to Challenge 6 : Hacme Bank #5Solution to Challenge 7 : Hacme Bank #6Solution to Challenge 8 : Hacme Bank #7Solution to Challenge 9 : Hacme Books |
|