[OWASP-WEBGOAT]Cheat Sheet

Tim Smith Tim.Smith at alphawest.com.au
Wed Nov 27 19:16:10 EST 2002


Hi Jeff
Thanks for that, really appreciate it.
I think a cheat sheet with the distribution would help. Typically, I would
see this being used by a development team. The lead developer may set this
as a task for his team but I think an actual definition of the methodology
on how to break it would be pertinent. This way, the lead developer can be
assured that the team are tackling all the issues and bits aren't missed. Of
course, there are many ways to skin the cat and I think one of the benefits
of webGoat is that it gives an opportunity for developers to be inventive -
in this way, the cheat sheet would act as more of a baseline than the
"correct" way of exploiting the vulnerabilities.
 
Thanks again Jeff
 
Tim

-----Original Message-----
From: Jeff Williams @ Aspect [mailto:jeff.williams at aspectsecurity.com]
Sent: Thursday, 28 November 2002 12:37 AM
To: Mark Curphey; Tim Smith
Cc: owasp-webgoat at lists.sourceforge.net
Subject: Re: [OWASP-WEBGOAT]Cheat Sheet


Tim,
 
Here's a very short cheat sheet.  I'm not sure now whether we should make
this part of the distribution or not.  Thoughts?

1.	Http Basics -- use this one to demonstrate that HTTP is stateless,
request-reply protocol. Click show parameters to show what's going with each
request. 

2.	Fail Open Authentication -- try removing the password parameter
entirely using Achilles.  Or you can do it on the URL with (
http://localhost:8080/WebGoat/attack?Username=jeff
<http://localhost:8080/WebGoat/attack?Username=jeff> ) -- when there's no
password, an exception gets thrown and the authentication step gets skipped.


3.	HTML Clues -- view HTML and search for a comment with admin:adminpw
-- use this to authenticate 

4.	Parameter Injection -- show how shell calls can be used to run
arbitrary code -- use the & character to chain commands on windows --
blah.txt & netstat -a & ipconfig 

5.	Unchecked Email -- enter a message that contains linked offensive
content -- Hi, check this out....<A href=" Click'>http://www.google.com"
<http://www.google.com> >Click here for Google"</A> and it looks like it
came from the website. 

6.	SQL Injection -- 101' or 1=1 to get the whole contents of the db 

7.	Thread Safety -- this one's tricky -- use 'new window' to get two
browsers.  Enter 'dave' in one window and 'jeff' in the other.  Then set it
up so you click on the submit boxes as fast as possible.  If you do it fast
enough, the application gets confused and returns the second clicked account
to both browsers.  This is a massively underreported problem in many many
web apps. 

8.	Weak Authentication Cookie -- use achilles to add
'AuthCookie=ggfkggfk;' to the Cookie: header using Achilles. Note that the
cookie is username:password (jeff:jeff) backwords and one-letter up. 

9.	Database XSS -- enter <script language="javascript"
type="text/javascript">alert("Ha Ha Ha");</script> in the message and then
click on the name of the message below to show that anyone who reads the
message is attacked 

10.	Hidden Field Tampering -- there are a number of ways to edit a
hidden field.  I like IEBooster, but you can use Achilles, or even try to
modify it in the URL (e.g. http://localhost:8080/WebGoat/attack?Price=9.99
<http://localhost:8080/WebGoat/attack?Price=9.99> ).  Change the price of
the TV from 4999.99 to 9.99.  

11.	Weak Access Control -- this page is supposed to let you access files
in a certain directory.  But if you use ../topsecret.txt you can get other
files.  Would be nice to enhance this with some url, hex, unicode encoding
attacks. 

12.	Challenge 1 -- the challenge is tricky.  To get past the first page,
you have to remember how to turn on showing of the java code. Check the
lesson plan link to find out that the lesson plan is called
ChallengeScreen.html.  Then force browse to
/WebGoat/src/lessons/ChallengeScreen.java.  Find the username and password
(youaretheweakestlink:goodbye).  Note: there is another option -- if you
sniff the network, you'll see a UDP packet with the username and password in
the clear.  Cool huh? 

13.	Challenge 2 -- you'll need to modify the 's' hidden field to contain
101' or 1=1 (like the database lesson). Use Achilles or IEBooster.  This
will give you all the passwords. 

14.	Challenge 3 -- you'll need to know a bit about Server Side Includes
here -- syntax is <!--#exec tag1="dir" -->  So you'll want to do something
like <!--#exec tag1="echo defaced > [PATH]\index.html" -->.  This will
overwrite the index.html with your content and win the challenge.

--Jeff
 
			
 
Jeff Williams, CEO
jeff.williams at aspectsecurity.com <mailto:jeff.williams at aspectsecurity.com> 
(410) 707-1487 (work)
(301) 604-4882 (main)
(208) 379-1165 (fax)
 
Aspect Security, Inc.
"The Web Application Security Specialists"
9175 Guilford Road, Suite 300, Columbia MD 21046
www.aspectsecurity.com <http://www.aspectsecurity.com> 
 
 
----- Original Message ----- 
From: Mark Curphey <mailto:mark at curphey.com>  
To: Tim Smith <mailto:Tim.Smith at alphawest.com.au>  
Cc: 'owasp-webgoat at lists.sourceforge.net'
<mailto:'owasp-webgoat at lists.sourceforge.net'>  
Sent: Tuesday, November 26, 2002 9:09 PM
Subject: Re: [OWASP-WEBGOAT]Cheat Sheet

Thats a great idea Tim. I will wait for Jeff and Bruce to answer for now
but also we can add that to the feature requests on the Sourceforge task
manager. 




On Tue, 2002-11-26 at 15:53, Tim Smith wrote:
> Hi guys
> can someone help me out with a cheat sheet for WebGoat. I understand the
> philosophy behind using it as a training tool but am struggling with some
of
> the basics here :-)
> Any help greatly appreciated - look on this as a trial user..
-- 
Mark Curphey < mark at curphey.com <mailto:mark at curphey.com> >



-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
<http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en> 
_______________________________________________
OWASP-WEBGOAT mailing list
OWASP-WEBGOAT at lists.sourceforge.net
<mailto:OWASP-WEBGOAT at lists.sourceforge.net> 
https://lists.sourceforge.net/lists/listinfo/owasp-webgoat
<https://lists.sourceforge.net/lists/listinfo/owasp-webgoat>  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.owasp.org/pipermail/owasp-webgoat/attachments/20021128/d9cbfa7d/attachment.html 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: InterScan_Disclaimer.txt
Url: http://lists.owasp.org/pipermail/owasp-webgoat/attachments/20021128/d9cbfa7d/attachment.txt 


More information about the Owasp-webgoat mailing list