diff --git a/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/BackDoors.java b/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/BackDoors.java index 4c5408ad0..d350c25c1 100644 --- a/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/BackDoors.java +++ b/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/BackDoors.java @@ -50,6 +50,8 @@ import org.owasp.webgoat.session.WebSession; * for free software projects. * * For details, please see http://code.google.com/p/webgoat/ + * + * @author Sherif Koussa <a href="http://www.macadamian.com">Macadamian Technologies.</a> */ public class BackDoors extends LessonAdapter { @@ -257,7 +259,7 @@ public class BackDoors extends LessonAdapter public Element getCredits() { - return new StringElement("Created by Sherif Koussa"); + return super.getCustomCredits("Created by Sherif Koussa - Macadamian Technologies", AOC_LOGO); } diff --git a/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/CSRF.java b/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/CSRF.java index 80617b791..ffd60e4dc 100644 --- a/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/CSRF.java +++ b/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/CSRF.java @@ -52,6 +52,9 @@ import org.owasp.webgoat.util.HtmlEncoder; * for free software projects. * * For details, please see http://code.google.com/p/webgoat/ + * + * @author Sherif Koussa <a href="http://www.macadamian.com">Macadamian Technologies.</a> + */ public class CSRF extends LessonAdapter { @@ -320,8 +323,9 @@ public class CSRF extends LessonAdapter { return nameroot; } - public Element getCredits() { - return new StringElement("Created by Sherif Koussa"); - } + public Element getCredits() + { + return super.getCustomCredits("Created by Sherif Koussa - Macadamian Technologies", AOC_LOGO); + } } diff --git a/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/DOMInjection.java b/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/DOMInjection.java index 1d3d7b16b..02a33abc9 100644 --- a/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/DOMInjection.java +++ b/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/DOMInjection.java @@ -44,7 +44,7 @@ import org.owasp.webgoat.session.WebSession; * * For details, please see http://code.google.com/p/webgoat/ * - * @author Sherif Koussa <a href="http://code.google.com/p/webgoat">WebGoat</a> + * @author Sherif Koussa <a href="http://www.macadamian.com">Macadamian Technologies.</a> * @created October 28, 2006 */ @@ -152,7 +152,7 @@ public class DOMInjection extends LessonAdapter public Element getCredits() { - return new StringElement("Created by Sherif Koussa"); + return super.getCustomCredits("Created by Sherif Koussa - Macadamian Technologies", AOC_LOGO); } @@ -175,10 +175,8 @@ public class DOMInjection extends LessonAdapter List<String> hints = new ArrayList<String>(); hints.add("This page is using XMLHTTP to comunicate with the server."); - hints - .add("Try to find a way to inject the DOM to enable the Activate button."); - hints - .add("Intercept the reply and replace the body with document.forms[0].SUBMIT.disabled = false;"); + hints.add("Try to find a way to inject the DOM to enable the Activate button."); + hints.add("Intercept the reply and replace the body with document.forms[0].SUBMIT.disabled = false;"); return hints; } diff --git a/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/ForcedBrowsing.java b/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/ForcedBrowsing.java index 9944680b9..3d837a3ab 100644 --- a/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/ForcedBrowsing.java +++ b/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/ForcedBrowsing.java @@ -43,6 +43,7 @@ import org.owasp.webgoat.session.WebSession; * for free software projects. * * For details, please see http://code.google.com/p/webgoat/ + * * @author Sherif Koussa <a href="http://www.macadamian.com">Macadamian Technologies.</a> * @created November 02, 2006 */ @@ -152,6 +153,6 @@ public class ForcedBrowsing extends LessonAdapter public Element getCredits() { - return new StringElement("Created by Sherif Koussa"); + return super.getCustomCredits("Created by Sherif Koussa - Macadamian Technologies", AOC_LOGO); } } diff --git a/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/HttpSplitting.java b/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/HttpSplitting.java index 517f2cbca..aeab40255 100644 --- a/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/HttpSplitting.java +++ b/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/HttpSplitting.java @@ -41,8 +41,8 @@ import org.owasp.webgoat.session.WebSession; * for free software projects. * * For details, please see http://code.google.com/p/webgoat/ - * - * @author sherif@macadamian.com + * + * @author Sherif Koussa <a href="http://www.macadamian.com">Macadamian Technologies.</a> * @created September 30, 2006 */ @@ -289,7 +289,7 @@ public class HttpSplitting extends LessonAdapter public Element getCredits() { - return new StringElement("Created by Sherif Koussa"); + return super.getCustomCredits("Created by Sherif Koussa - Macadamian Technologies", AOC_LOGO); } } diff --git a/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/JSONInjection.java b/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/JSONInjection.java index 8f699db56..56977a627 100644 --- a/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/JSONInjection.java +++ b/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/JSONInjection.java @@ -45,8 +45,8 @@ import java.util.ArrayList; * for free software projects. * * For details, please see http://code.google.com/p/webgoat/ - * - * @author sherif@macadamian.com + * + * @author Sherif Koussa <a href="http://www.macadamian.com">Macadamian Technologies.</a> * @created December 25, 2006 */ @@ -270,9 +270,10 @@ public class JSONInjection extends LessonAdapter return ec; } - public Element getCredits() { - return new StringElement("Created by Sherif Koussa"); - } + public Element getCredits() + { + return super.getCustomCredits("Created by Sherif Koussa - Macadamian Technologies", AOC_LOGO); + } protected Category getDefaultCategory() { diff --git a/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/LessonAdapter.java b/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/LessonAdapter.java index 5fd0581ce..6e3b74883 100644 --- a/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/LessonAdapter.java +++ b/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/LessonAdapter.java @@ -56,6 +56,8 @@ public abstract class LessonAdapter extends AbstractLesson final static IMG WEBGOAT_LOGO = new IMG("images/logos/WebGoat.jpg").setAlt( "WebGoat Logo").setBorder(0).setHspace(0).setVspace(0); + final static IMG AOC_LOGO = new IMG("images/logos/AOC_Logo.jpg").setAlt( + "OWASP Autumn of Code").setBorder(0).setHspace(0).setVspace(0); /** * Description of the Method diff --git a/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/LogSpoofing.java b/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/LogSpoofing.java index a6c98fc97..f3f78cdeb 100644 --- a/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/LogSpoofing.java +++ b/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/LogSpoofing.java @@ -166,6 +166,6 @@ public class LogSpoofing extends LessonAdapter public Element getCredits() { - return new StringElement("Created by Sherif Koussa"); + return super.getCustomCredits("Created by Sherif Koussa - Macadamian Technologies", AOC_LOGO); } } diff --git a/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/NewLesson.java b/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/NewLesson.java index e1e928649..ec2758c2e 100644 --- a/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/NewLesson.java +++ b/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/NewLesson.java @@ -33,8 +33,8 @@ import org.owasp.webgoat.session.WebSession; * for free software projects. * * For details, please see http://code.google.com/p/webgoat/ - * - * @author Sherif Koussa <a href="http://code.google.com/p/webgoat">WebGoat</a> + * + * @author Sherif Koussa <a href="http://www.macadamian.com">Macadamian Technologies.</a> * @created October 28, 2003 */ public class NewLesson extends LessonAdapter @@ -86,6 +86,6 @@ public class NewLesson extends LessonAdapter public Element getCredits() { - return new StringElement("Created by Sherif Koussa"); + return super.getCustomCredits("Created by Sherif Koussa - Macadamian Technologies", AOC_LOGO); } } diff --git a/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/SilentTransactions.java b/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/SilentTransactions.java index a1778bb9f..25a9af4b2 100644 --- a/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/SilentTransactions.java +++ b/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/SilentTransactions.java @@ -48,7 +48,7 @@ import org.owasp.webgoat.session.WebSession; * * For details, please see http://code.google.com/p/webgoat/ * - * @author Sherif Koussa <a href="http://code.google.com/p/webgoat">WebGoat</a> + * @author Sherif Koussa <a href="http://www.macadamian.com">Macadamian Technologies.</a> * @created December 26, 2006 */ @@ -306,7 +306,7 @@ public class SilentTransactions extends LessonAdapter public Element getCredits() { - return new StringElement("Created by Sherif Koussa"); + return super.getCustomCredits("Created by Sherif Koussa - Macadamian Technologies", AOC_LOGO); } } diff --git a/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/XMLInjection.java b/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/XMLInjection.java index 173972f2b..3cc7944be 100644 --- a/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/XMLInjection.java +++ b/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/XMLInjection.java @@ -51,6 +51,8 @@ import org.owasp.webgoat.session.WebSession; * for free software projects. * * For details, please see http://code.google.com/p/webgoat/ + * + * @author Sherif Koussa <a href="http://www.macadamian.com">Macadamian Technologies.</a> */ public class XMLInjection extends LessonAdapter { @@ -319,8 +321,7 @@ public class XMLInjection extends LessonAdapter public Element getCredits() { - - return new StringElement("Created by Sherif Koussa"); + return super.getCustomCredits("Created by Sherif Koussa - Macadamian Technologies", AOC_LOGO); } diff --git a/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/XPATHInjection.java b/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/XPATHInjection.java index 38e98a9ef..645b66476 100644 --- a/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/XPATHInjection.java +++ b/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/XPATHInjection.java @@ -64,7 +64,7 @@ import org.owasp.webgoat.session.ECSFactory; * * For details, please see http://code.google.com/p/webgoat/ * - * @author Sherif Koussa <a href="http://code.google.com/p/webgoat">WebGoat</a> + * @author Sherif Koussa <a href="http://www.macadamian.com">Macadamian Technologies.</a> * @created November 28, 2006 */ @@ -214,7 +214,7 @@ public class XPATHInjection extends LessonAdapter public Element getCredits() { - return new StringElement("Created by Sherif Koussa"); + return super.getCustomCredits("Created by Sherif Koussa - Macadamian Technologies", AOC_LOGO); } diff --git a/ webgoat/main/project/WebContent/images/logos/AOC_Logo.jpg b/ webgoat/main/project/WebContent/images/logos/AOC_Logo.jpg new file mode 100644 index 000000000..183edbaad Binary files /dev/null and b/ webgoat/main/project/WebContent/images/logos/AOC_Logo.jpg differ