-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lab Cross-Site Scripting Stage 1 solution #176
Comments
The imports used by This revealed a new issue. When logging out of GHF and logging in as Jerry it seems the injected code is no longer saved. When viewing Tom's profile the real address for Tom is shown. The issue is the same even if not logging out and simply going to "List staff" and then "View profile" again. I added some logging to the CreateDB.createEmployeeTable method and I can see the injected code in the db update and then the table is dropped.
As you can see at the end the employee table is dropped and recrated. Not sure why this is happening yet.
|
After some more debugging I have found the following:
Now; a few questions:
|
…that we do not reset the stage and recreate the database in the middle of a lesson. To do this a small refactor of WebSession was made which simply extracts some methods from the previously large update method. Ref WebGoat#176.
Awesome sleuthing. |
Merged so closing. |
The solution file for this lab does not render and is reported as missing. The stage has a solution in WebGoat 6 where the street field is injectable with a script but that solution does not work in WebGoat 7.
When injecting the field in WebGoat 7 with
<script>alert(1)</script>
the result is.script.alert(1)./script.
. The brackets are turned into dots.Also note that stage 1 in the second XSS lab "DB Cross-Site Scripting" also have the same issue.
Is this an intentional change of the behaviour so that is the reason the solution is missing or has the solution simply not been ported and the lesson is broken?
The text was updated successfully, but these errors were encountered: