Home
Calendar
Certifications
Columns
Features
Forum
Resources
Vitals
Latest Additions
April 2013 Free Giveaway Sponsor - eLearnSecurity
Human Intelligence to Navigate the Security Data Deluge
February 2013 Free Giveaway Winner of SANS CyberCon Training
Interview: Bugcrowd Founders on Herding Ninjas for Crowdsourced Bug Bounties
Network Forensics: The Tree in the Forest
March 2013 Free Giveaway Sponsor - Mile2
Book Review: Violent Python
February 2013 Free Giveaway Sponsor - SANS
Holiday 2012 Free Giveaway Winner of Metasploit Pro by Rapid7
Course Review: SANS FOR408 Computer Forensic Investigations – Windows In-Depth
The Security Consulting Sugar High
Tutorial: Fun with SMB on the Command Line
Interview: Ilia Kolochenko, CEO of High-Tech Bridge
October 2012 Free Giveaway Winner of LearningGate Training
The Broken: Assessing Corporate Security in 2012 to Make a Better 2013
EH-Net Login
Welcome Guest.
Username:
Password:
Remember me
Lost Password?
No account yet?
Register
Who's Online
We have 57 guests and 3 members online
You are here:
Home
Resources
Tutorials
Pentest Lab: Web Application Edition
EH-Net
May 23, 2013, 08:38:52 PM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: Go back to The Ethical Hacker Network Online Magazine
Home Page
Home
Help
Calendar
Login
Register
EH-Net
>
Resources
>
Tutorials
(Moderator:
don
) >
Pentest Lab: Web Application Edition
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: Pentest Lab: Web Application Edition (Read 17678 times)
0 Members and 1 Guest are viewing this topic.
Jhaddix
Sr. Member
Offline
Posts: 317
Pentest Lab: Web Application Edition
«
on:
July 27, 2009, 03:34:22 PM »
http://www.securityaegis.com/?p=574
Working links at the site =)
Quote
Over the last week, we busted out our red plastic shovel and our bucket shaped like a castle to dig a little bit deeper into our sandbox. Recently, we addressed the flexibility and overall necessity of a virtual lab for network pentesting, practice, and testing.
Today, we plan to expand upon that to encompass Web App. Our setup includes 7 target sites hosted on 4 VM’s. It’s important to note, that we only showcase the tip of the iceberg. The possibility of expansion is limited only by your imagination.
This lab takes substantially more prep and organization than our network lab did, as each target site has different requirements. We hosted most of our targets on XP Pro SP3 boxes, though many should work on Vista or maybe even Win7 RC.
Downloads:
MSDE2000A(required for Hacme Bank)
.Net 1.1(Required for Hacme Bank)
JDK(Required for Hacme Books)
Xampp(For DVWA and Mutillidae)
DVWA
Mutillidae
Moth VM
WebGoat
Hacme Bank
Hacme Books
Hacme Casino
SamuraiWTF
As we did with our last lab setup, we chose to keep everything self contained using a HostOnly network. We used VMware again. Not only is it free (who doesn’t love free stuff?) but it’s also powerful and flexible enough to serve our needs. Both the network lab and the Web app lab can be combined, but we chose to keep them separate for organizational reasons. Redeploying a VM takes very little effort.
This lab allows us to test many different tools, from browser based add-ons to stand alone tools. We decided to use SamuraiWTF as our attack platform for many of the same reasons we used BT pre 4 on our Network lab. It’s prepackaged with most, if not all, the tools you might need. Since it is a LiveCD, it requires minimal setup to get it up and running.
Before diving deep into this project, we highly suggest you download everything you need first. Storing everything on a USB thumb drive makes this process much easier and flow more smoothly. We also assume you have checked out the network lab article and video. If you have little or no experience with VMware (specifically VMware server) we suggest you glance over that video first for a more basic view of the VMware server usage.
Let’s get our hands dirty.
We started off by setting up Moth. Moth is a pre-configured VM image, all we need to do here is extract it to our datastore’s directory, import it, and make sure our network is configured correctly. Moth is configured to retrieve IP info from DHCP. Log in with moth:moth and ifconfig for your IP. Moth is brought to us by Bonsai-sec.com. “For almost every web application vulnerability that exists in the wild, there is a test script available in moth.”
Moth is attacked through http://(VM’s IP)
We moved on to DVWA and Mutillidae, both of which were hosted on an XP pro machine using Xampp. Very simple process here, install Xampp and move the DVWA and Mutillidae into the xampp/htdocs/ directory. Damn Vulnerable Web App is a project that @ethicalhack3r started and it’s still going strong. From our understanding, we should see a new version coming out in the next month or two. “…it’s in a completely different league to the current stable version.” DVWA features the ability to change its security settings to raise or lower the difficulty. This option makes it an awesome target for uber-noobs (like myself) to a more seasoned web app tester. Mutillidae was an Irongeek.com project. The focus here was to implement the OWASP TOP 10 into a single environment. A couple different videos about Mutillidae can be found at Irongeek.com.
Attack through http://(VM’s IP) and then browse to target
Third in line is our WebGoat machine. WebGoat is pretty self-contained, no need to install anything. Just transfer it to the VM from the thumb drive and run the .bat file. The only real work we needed to do was edit server_80.xml to allow remote connections. WebGoat is an OWASP project. One of the standout features of WebGoat is its design. It has clearly outlined goals in the form of labs. Such as, “…Stored XSS attack against the Street field on the Edit Profile page. Verify that ‘Jerry’ is affected by the attack.” But of course, the application is yours to attack in any form you like.
WebGoat is attacked through http://(VM’s IP)/WebGoat/attack (It is case sensitive)
Last of our target machines is the Foundstone machine. Each target within the Foundstone machine has its own set of requirements. For Hacme Bank, we found a great written walk through for installing to XP and making it remote accessible. Hacme Books is a fairly simple install, with a slight file modification. Hacme Casino is as simple as it gets, install and go. Foundstone has released multiple Vulnerable Web Apps for testing, of which we only showcase three. We highly suggest you visit their site check out Hacme Travel and Hacme Shipping.
Hacme Bank is attacked through http://(VM’s IP)/HacmeBank_v2_website/
Hacme Books is attacked through http://(VM’s IP):8989/HacmeBooks/
Hacme Casino is attacked through http://(VM’s IP):3000/
Of course, we need an attack platform. As stated earlier, we chose to go with SamuraiWTF. You can choose any platform you like, host machine included. But if you’ve never given SamuraiWTF a shot, there’s no better time than now. SamuraiWTF is a Live Linux environment packaged with “the best of the open source and free tools that focus on testing and attacking websites.” Nothing can lend more credibility to this release then the names of its project team. Kevin Johnson and Justin Searle, among others. It’s everything you would expect from an InGuardians project, and more.
This setup is great for anything from learning the basics to testing new tools, testing one-off attack vectors, and it can be expanded to serve may other needs. We are continuing to play around with our labs in hopes of finding something we could share with you. If you have any suggestions on how to make our setup better, or even a request for something you’d like to see in the next lab, drop us a line. We always give credit where credit is due.
Logged
GSEC, GPEN, GWAPT, ECPPT, WAHHlive, LSOAdvancedPenTester
http://www.securityaegis.com
http://www.pentesterscripting.com
http://code.google.com/p/pentest-bookmarks/
dalepearson
Sr. Member
Offline
Posts: 357
Re: Pentest Lab: Web Application Edition
«
Reply #1 on:
July 27, 2009, 05:28:23 PM »
Another excellent vid from Mike and Jason.
Great effort guys, and thanks.
Logged
:: Subliminal Hacking ::
/
:: Security Active Blog ::
UNIX
Hero Member
Offline
Posts: 1235
Re: Pentest Lab: Web Application Edition
«
Reply #2 on:
July 28, 2009, 12:33:37 AM »
I agree with dalepearson. As same as with the first part I am pretty sure this will help many newcomers.
Thanks both of you for your efforts you are putting into this.
Logged
Laz3r
Guest
Re: Pentest Lab: Web Application Edition
«
Reply #3 on:
July 28, 2009, 01:24:12 AM »
Thanks for the kind words guys. If you any suggestions, or something you'd like to see on the next edition, let us know. I'm sure there are tons of things we could do with our lab that we haven't thought of yet.
Logged
Andrew Waite
Hero Member
Offline
Posts: 928
Re: Pentest Lab: Web Application Edition
«
Reply #4 on:
July 29, 2009, 11:20:27 AM »
Laz3r,
depending on which direction you're looking to take this it may be interesting to add some monitoring/prevention devices to you lab for more advanced setups.
Something I'm currently working on is adding a Snort implementation to my environment to allow me to see which of the attacks and techniques I'm trialling trigger signatures (and adding custom sigs for those that don't). I'm hoping it may aid in getting a lab environment closer to real-world.
Similarly adding a virtual firewall appliance between attack and target machines with configurable rulesets, should allow to better explain the need for reverse over bind shellcode etc. Or to similate pivot and post-expoit activities. For example, pop an insecure web app to gain access to a backend DB target that isn't world accessible.
Possibilities are endless. Keep up the good work and thanks for sharing your findings.
Logged
--
http://www.infosanity.co.uk
--
http://blog.infosanity.co.uk
Bane
Guest
Re: Pentest Lab: Web Application Edition
«
Reply #5 on:
August 17, 2009, 10:23:06 AM »
Excellent post guys. My suggestion would be to add foundstone's hackme travel and shipping to the list.
Logged
Laz3r
Guest
Re: Pentest Lab: Web Application Edition
«
Reply #6 on:
August 17, 2009, 11:04:29 AM »
Quote from: Jhaddix
Foundstone has released multiple Vulnerable Web Apps for testing, of which we only showcase three. We highly suggest you visit their site check out Hacme Travel and Hacme Shipping.
=D
«
Last Edit: August 17, 2009, 11:25:38 AM by Laz3r
»
Logged
Bane
Guest
Re: Pentest Lab: Web Application Edition
«
Reply #7 on:
August 18, 2009, 01:49:25 PM »
Quote from: Laz3r on August 17, 2009, 11:04:29 AM
Quote from: Jhaddix
Foundstone has released multiple Vulnerable Web Apps for testing, of which we only showcase three. We highly suggest you visit their site check out Hacme Travel and Hacme Shipping.
=D
How about WebGoat and Damn Vulnerable Web App than?
«
Last Edit: August 18, 2009, 01:51:50 PM by Bane
»
Logged
Jhaddix
Sr. Member
Offline
Posts: 317
Re: Pentest Lab: Web Application Edition
«
Reply #8 on:
August 18, 2009, 02:03:15 PM »
Hey Bane,
If you read the article and watch the video you'll see we did use those two.
Quote
DVWA
Mutillidae
Moth VM
WebGoat
Hacme Bank
Hacme Books
Hacme Casino
SamuraiWTF (Attack Platform)
Logged
GSEC, GPEN, GWAPT, ECPPT, WAHHlive, LSOAdvancedPenTester
http://www.securityaegis.com
http://www.pentesterscripting.com
http://code.google.com/p/pentest-bookmarks/
Bane
Guest
Re: Pentest Lab: Web Application Edition
«
Reply #9 on:
August 18, 2009, 04:05:45 PM »
Quote from: Jhaddix on August 18, 2009, 02:03:15 PM
Hey Bane,
If you read the article and watch the video you'll see we did use those two.
Quote
DVWA
Mutillidae
Moth VM
WebGoat
Hacme Bank
Hacme Books
Hacme Casino
SamuraiWTF (Attack Platform)
Yeah, I was just messing around since I missed the foundstone ones.. Making a little bit of joke.. Obviously not a good one.
Logged
seanolee
Newbie
Offline
Posts: 1
Re: Pentest Lab: Web Application Edition
«
Reply #10 on:
February 18, 2010, 06:09:34 AM »
I am totally new to this.
Can you point me to the videos referenced above.
Also, I have installed moth, but can't access it over the netwotk
ifconfig shows only 2 devices: lo and vnet0.
I can't understand http://<ip-addr>.
Is that done from the host?
Logged
unsupported
Sr. Member
Offline
Posts: 318
Unofficial Newbie Moderator
Re: Pentest Lab: Web Application Edition
«
Reply #11 on:
February 18, 2010, 07:49:25 AM »
Quote from: seanolee on February 18, 2010, 06:09:34 AM
I am totally new to this.
Can you point me to the videos referenced above.
Also, I have installed moth, but can't access it over the netwotk
ifconfig shows only 2 devices: lo and vnet0.
I can't understand http://<ip-addr>.
Is that done from the host?
The http://<ip-addr> is the host virtual machines IP address, 127.0.0.1, or whatever. It would be accessible from any host on your lan.
The videos are linked in the first article,
http://www.securityaegis.com/?p=574
.
Logged
-Un
CISSP, GCIH, GCIA, C|EH, Sec+, Net+, MCP
Pages: [
1
]
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
EH-Net
-----------------------------
=> Calendar Of Events
===> ChicagoCon 2007
===> ChicagoCon 2008s
===> ChicagoCon 2008f
===> ChicagoCon 2009s
=> Ethical Hacktivism
=> News Items and General Discussion About EH-Net
===> Greetings
=> Special Events
-----------------------------
Ethical Hacking Discussions and Related Certifications
-----------------------------
=> General Certification
===> Networking
===> OS
===> Security
=> Compliance, Regulations & Standards
=> Control Systems
=> Cyber Warfare
=> Forensics
===> CCE / MCCE - (Master) Certified Computer Examiner
===> CHFI - Computer Hacking Forensic Investigator
===> EnCE - EnCase® Certified Examiner
===> GCFA - GIAC Certified Forensics Analyst
=> Hardware
=> Incident Response
===> CSIH - Computer Security Incident Handler
===> GCIH - GIAC Certified Incident Handler
=> Malware
===> Advisories
=> Mobile
=> Network Pen Testing
===> CEH - Certified Ethical Hacker
===> CPTC - Certified Penetration Testing Consultant
===> CPTE - Certified Penetration Testing Engineer
===> CSTA - Certified Security Testing Associate
===> eCPPT - eLearnSecurity Certified Professional Penetration Tester
===> ECSA - EC-Council Certified Security Analyst
===> GPEN - GIAC Certified Penetration Tester
===> OSCP - Offensive Security Certified Professional
=> Physical Security
=> Programming
=> Social Engineering
=> Web Applications
=> Wireless
===> CWNP Certs
===> GAWN - GIAC Assessing Wireless Networks
===> OSWP - Offensive Security Wireless Professional
=> Other
-----------------------------
Columns
-----------------------------
=> Editor-In-Chief
=> Andress
=> Gates
=> Haddix
=> Hadnagy
=> Heffner
=> Hoffman
=> Linn
=> RichM
=> Murray
=> J. Peltier
=> Weidman
=> Wilson
-----------------------------
Features
-----------------------------
=> /root
=> Book Reviews
=> Opinions
=> Skillz
===> Examples
===> May 06 - Star Hacks, Episode V: The Empire Hacks Back
===> July 06 - Hack Bill!
===> Sept 06 - Netcat in the Hat
===> Nov 06 - Hitch-Hackers Guide to the Galaxy
===> Dec 06 - A Christmas (Hacking) Story
===> Feb 07 - Charlottes Web Site
===> April 07 - Microsoft Office Space
===> June 07 - Serenity Hack
===> Oct 07 - Worst. Ethical. Hacker. Challenge. Ever.
===> Dec 07 - Frosty the Snow Crash
===> March 2008 - It Happened One Friday
===> Oct 2008 - Scooby Doo and the Crypto Caper
===> Dec 08 - Santa Claus Is Hacking to Town
===> Feb 2009 - Brady Bunch Boondoggle
===> July 2009 - Prison Break
===> October 2009 - SSHliders
===> December 2009 - Miracle on Thirty-Hack Street
===> December 2010 - The Nightmare Before Charlie Browns Christmas
-----------------------------
Resources
-----------------------------
=> Career Central
===> Looking For Work
===> Looking To Hire
=> Links to cool sites.
=> Mass Media
=> News from the Outside World
=> Tools
=> Tutorials
===> Tutorial Requests
Loading...
Exclusive Deal
SANSFIRE 2013
June 15 - 22
5% Off
w/ Code
:
EHN_5
SANS Deals 4 EH-Netters
5% OFF
Any
SANS Course
in Any Format!
Coupon Code:
EHN_5
Including
SANS Rocky Mountain 2013
&
SANS Boston 2013
Polls
Compared to this year, 2013 will be:
Great!
Better.
About the same.
Little worse.
FUBAR!
Recent Forum Topics
GCIH - GIAC Certified Incident Handler
: Passed my GCIH
(5) by
MrTuxracer
Greetings
: Hi from the UK
(4) by
MrTuxracer
GCIH - GIAC Certified Incident Handler
: GCIH Free Practice test attempt
(0) by
prats84
News Items and General Discussion About EH-Net
: Change is Coming to EH-Net!!
(27) by
don
Network Pen Testing
: AIX Vulnerability Assessments
(2) by
ras76
Tutorials
: Need guidance
(9) by
hanyhasan
Programming
: Finished Python Course in Codecademy now what?
(15) by
hanyhasan
EH-Net News Feeds
Latest Additions
Privacy Notice
for TDCC & All Properties
© 2013 The Ethical Hacker Network
Joomla!
is Free Software released under the GNU/GPL License.