From b3591580a927043f7b1f4fc6d929a2a253a5dfd1 Mon Sep 17 00:00:00 2001 From: "rogan.dawes" <rogan.dawes@4033779f-a91e-0410-96ef-6bf7bf53c507> Date: Thu, 10 Jan 2008 10:45:44 +0000 Subject: [PATCH] clarifying instructions and importing a .js git-svn-id: http://webgoat.googlecode.com/svn/trunk@252 4033779f-a91e-0410-96ef-6bf7bf53c507 --- .../JavaSource/org/owasp/webgoat/lessons/DOMXSS.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/DOMXSS.java b/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/DOMXSS.java index 56c5c9670..478799909 100644 --- a/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/DOMXSS.java +++ b/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/DOMXSS.java @@ -123,6 +123,8 @@ public class DOMXSS extends SequentialLessonAdapter { ec.addElement(new Script().setSrc("javascript/DOMXSS.js")); + ec.addElement(new Script().setSrc("javascript/escape.js")); + ec.addElement(new H1().setID("greeting")); ec.addElement(new StringElement("Enter your name: ")); @@ -208,9 +210,9 @@ public class DOMXSS extends SequentialLessonAdapter { if (getLessonTracker(s).getStage() == 1) { instructions = "STAGE 1:\tFor this exercise, your mission is to deface this website using the image at the following location: <a href = '/WebGoat/images/logos/owasp.jpg'>OWASP IMAGE</a>"; } else if (getLessonTracker(s).getStage() == 2) { - instructions = "STAGE 2:\tNow, try to create a pop up using the image tag"; + instructions = "STAGE 2:\tNow, try to create a JavaScript alert up using the image tag"; } else if (getLessonTracker(s).getStage() == 3) { - instructions = "STAGE 3:\tNext, try to create a pop up using the IFRAME tag."; + instructions = "STAGE 3:\tNext, try to create a JavaScript alert up using the IFRAME tag."; } else if (getLessonTracker(s).getStage() == 4) { instructions = "STAGE 4:\tUse the following to create a fake login form:<br><br>" + "Please enter your password:<BR><input type = \"password\" name=\"pass\"/><button " + "onClick=\"javascript:alert('I have your password: ' + pass.value);\">Submit</button><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>";