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 37 guests and 1 member online
You are here:
Home
Ethical Hacking Discussions and Related Certifications
Web Applications
WSDL - Reminder that not all hacks need to be 'hard'
EH-Net
May 23, 2013, 05:31:15 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
>
Ethical Hacking Discussions and Related Certifications
>
Web Applications
(Moderator:
don
) >
WSDL - Reminder that not all hacks need to be 'hard'
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: WSDL - Reminder that not all hacks need to be 'hard' (Read 5338 times)
0 Members and 1 Guest are viewing this topic.
hayabusa
Hero Member
Offline
Posts: 1633
WSDL - Reminder that not all hacks need to be 'hard'
«
on:
September 30, 2012, 10:25:52 AM »
Just wanted to throw this out to the collaborative, as a reminder that sometimes you can try TOO hard to exploit a system, when the keys are really closely within reach. This isn't always the case, but sometimes it doesn't take rocket science to pwn a system. Rather, just a little time and minimal effort. (Note: many of yur customers will overlook very simple things, that can lead to disastrous consequences. Case in point, the one below.)
This past week, I was asked to assist with a pentest for a customer with multile web applications. One application, in particular, was a prime example of using very basic wsdl enumeration to help gain the 'keys to the kingdom'
Due to the very highly sensitive nature of the customer, I don't have ANY screenshots to post, however, I will give some generalized info, below, as to how the application more or less gave me all the information for complete network compromise.
For this test, I was tasked to do both internal and external testing, but to focus mainly on internal, up front, as they wanted me to focus most of my efforts on a new application, which was to be an employee-only app, deployed for some workflow processes.
I began with some session captures, and traced some local workstation traffic, to see what sorts of data were being passed, and noted a very basic lack of good session handling /validation, specific to this application. ("No-no" / oops number one) After a bit of research, I found that the application didn't time out said sessions, either, so I knew that if I could take advantage of anyone's session data / cookies, I could theoretically impersonate them, and gain furter information. Next, I fired up ethereal, and ARP poisoned the gateway and workstation of a user, and fired up a paros proxy, to see if I could get the data I needed. A short time later, I had, in my possession all the data I needed: cookie data for the user session.
I watched and noted that the user pretty much stayed in the application, most of the day. SCORE!!! Got my session to ride on.
Now that I had an authenticated session, I hit their web application, resending the session info from my proxy captures, and had an authenticated session. Now, said application didn't have much 'critical' information, at least in the sense of credit card data ot anything, BUT it did have one very interesting caveat... The wsdl file.
A very generic description of wsdl scanning (there are multiple tools that can be used to both scan and exploit wsdl) can be found here:
http://minsky.gsi.dit.upm.es/semanticwiki/index.php/WSDL_Scanning
Wsdl scanning can provide some very valuable information. In this particular case, however, it was enough to completely pwn their network. Their wsdl exposed an element called 'get_ldap_config' (Yep, I'm sure you see this coming - injecting data into a request to get_ldap_config returned a full LDAP credentialled account. Did I mention, the configured account was a Windows 2008 Domain Admin? :-) )
Lessons to be learned -
If you're this customer, employ better session handling and validation, as well as changing the LDAP account for the app to one that isn't so critical.
If you're the tester, be sure to closely examine the apps you're testing, because the right opportunity may be just out of plain sight.
One of many articles about WSDL hacking (I advise all web-app hackers to become familiar with WSDL, as web services are becoming the all the rave):
http://www.soapui.org/SOAP-and-WSDL/web-service-hacking.html
Please feel free to expound on this thread, for others who do these attacks regularly.
«
Last Edit: September 30, 2012, 11:30:14 AM by hayabusa
»
Logged
~ hayabusa ~
"All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved." - Sun Tzu, 'The Art of War'
OSCE, OSCP , GPEN, C|EH
tturner
Sr. Member
Offline
Posts: 432
Re: WSDL - Reminder that not all hacks need to be 'hard'
«
Reply #1 on:
September 30, 2012, 02:54:52 PM »
That's awesome Hayabusa. I voraciously consume anything I can on web services. They are so prevalent and so shite half the time. Even great courses like SANS that list web services in the syllabus only spend 15 minutes or so on the topic. I was hoping the Mobile Pentest course (SEC575) I took in August would dig into it a bit but it really didnt. Lame. I'm still working up a review for that course btw. Looking forward to the dialogue on this topic. There's such a lacking of tools here for this stuff.
«
Last Edit: September 30, 2012, 04:16:32 PM by tturner
»
Logged
Certifications:
CISSP, CISA, GPEN, GWAPT, GAWN, GCIA, GCIH, GSEC, OPSE, CSWAE, CSTP, VCP
WIP: OSWP, GSSP-JAVA, GXPN
Udacity on hold, again. I suck.
http://sentinel24.com/blog
@tonylturner
http://bsidesorlando.org
m0wgli
Full Member
Offline
Posts: 248
Re: WSDL - Reminder that not all hacks need to be 'hard'
«
Reply #2 on:
September 30, 2012, 04:00:24 PM »
Thanks for sharing. This is something I'll definitely be looking into. I'd heard of WSDL before but couldn't remember where. Referring to my copy of the The Web Application Hackers Handbook (2nd Edition), web services are only covered on pages 56-57!
Logged
Security + | OSWP | eCPPT | CSTA
hayabusa
Hero Member
Offline
Posts: 1633
Re: WSDL - Reminder that not all hacks need to be 'hard'
«
Reply #3 on:
September 30, 2012, 07:21:32 PM »
Over the next few days, I'll see if I can post more of the WSDL-related stuff I've got. This weekend has been hectic, on the personal side, but while this particular pentest was still fresh on my mind, I wanted to at least get the topic started.
Logged
~ hayabusa ~
"All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved." - Sun Tzu, 'The Art of War'
OSCE, OSCP , GPEN, C|EH
MaXe
Hero Member
Offline
Posts: 669
I've just upgraded myself to a cyborg muahahaa!!1
Re: WSDL - Reminder that not all hacks need to be 'hard'
«
Reply #4 on:
October 01, 2012, 03:37:24 AM »
Very nice, I sometimes use SoapUI and Burp (the Scanner Module and sometimes the Intruder) to attack WSDL's. It works okay, even though I have to do a lot of manual verification or whether an attack worked or not, plus Burp doesn't check for e.g. case-sensitive authentication, which is a common WSDL flaw plus a few other things I can't remember right now.
Anyway, it seems like the references you provided, pretty much cover the most common vulnerabilities of WSDL's. Haven't encountered any interesting bugs with WSDL's so far, even though it may just be me, but XML responses are boring compared to a website with developer comments, javascript containing sometimes bad functionality, or insecure scripts or backdoors.
The nice thing about both SoapUI and Burp is that they both support certificate based authentication, which is required by some WSDL's.
PS: Sent you a PM
Logged
I'm an InterN0T'er
Jamie.R
Sr. Member
Offline
Posts: 429
Re: WSDL - Reminder that not all hacks need to be 'hard'
«
Reply #5 on:
October 01, 2012, 05:38:08 AM »
Thanks for the write up. I think its really good that you point you sometimes it the most simple methods in order to own something. I think a lot newbi to security sometimes miss the simple things and being aware of them separates the newbi from the pro.
I have not really done a lot on WSDL so this has opened my eyes to whats possible.
Logged
OSWP | Hackingdojo Nidan | eCPPT
ajohnson
Recruiters
Hero Member
Offline
Posts: 1057
aka dynamik
Re: WSDL - Reminder that not all hacks need to be 'hard'
«
Reply #6 on:
October 01, 2012, 06:29:39 AM »
Quote from: MaXe on October 01, 2012, 03:37:24 AM
Anyway, it seems like the references you provided, pretty much cover the most common vulnerabilities of WSDL's. Haven't encountered any interesting bugs with WSDL's so far, even though it may just be me, but XML responses are boring compared to a website with developer comments, javascript containing sometimes bad functionality, or insecure scripts or backdoors.
While not a "bug," there may be additional functionality that could be abused. On one of my recent assessments, I found that they allowed entire SQL queries to be submitted in this manner. What!?
And yes, nice write-up, H.
Logged
WIP: GCFA |
www.infosiege.net
| @infosiege
The day you stop learning is the day you start becoming obsolete.
rance
Full Member
Offline
Posts: 212
<censored>
Re: WSDL - Reminder that not all hacks need to be 'hard'
«
Reply #7 on:
October 02, 2012, 11:04:34 AM »
Quote from: tturner on September 30, 2012, 02:54:52 PM
That's awesome Hayabusa. I voraciously consume anything I can on web services. They are so prevalent and so shite half the time. Even great courses like SANS that list web services in the syllabus only spend 15 minutes or so on the topic. I was hoping the Mobile Pentest course (SEC575) I took in August would dig into it a bit but it really didnt. Lame. I'm still working up a review for that course btw. Looking forward to the dialogue on this topic. There's such a lacking of tools here for this stuff.
I was kind of looking to SANS Sec 642 to get more in depth with web services, but the syllabus looks pretty lean for that topic still.
Logged
Poking at security since 1986. +++ATH
hayabusa
Hero Member
Offline
Posts: 1633
Re: WSDL - Reminder that not all hacks need to be 'hard'
«
Reply #8 on:
October 02, 2012, 11:36:09 AM »
Yeah. In all honesty, I'd LOVE to find some GOOD training on webapps, all around, since, as everyone is noting, there is a lack in quite a few areas. WSDL is one of many web-related areas that I find lacking in any training offerings I've seen, or managed to attend.
SANS' courses are great, but I've heard a lot of people say the 542 wasn't as in-depth as they'd like, so I'm cautiously optimistic for 642. I know Kevin Johnson is da' man, and I'd love to get a chance to take 542 and 642 from him, if for no other reason than to pick his brain on some things (while, I'm sure, still learning a ton!), but affordability, in my situation, isn't there.
So I'm open to any suggestions anyone has. I'm also currently waiting to see what Joe McCray is putting together, for his updated web app pentesting course, and watching some others, too. Time will tell. (But I'm eager to find good web app stuff, while still being less than optimistic, at times...)
Logged
~ hayabusa ~
"All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved." - Sun Tzu, 'The Art of War'
OSCE, OSCP , GPEN, C|EH
ajohnson
Recruiters
Hero Member
Offline
Posts: 1057
aka dynamik
Re: WSDL - Reminder that not all hacks need to be 'hard'
«
Reply #9 on:
October 03, 2012, 04:39:33 AM »
I think WAHHv2 + MDSec labs is still the best resource IMO. Hacking Exposed Web Applications v3 is a decent supplement though. It doesn't go as in-depth on everything, but if I remember correctly, things like web services and Flash get a bit more love in that book.
eLearn has decent web content, but it doesn't get that advanced. Rumor has it that the new OffSec course will be available around the end of the year, and I'm eagerly anticipating that. They may not "teach" you everything, but you'll probably know it well once you go through the labs
I think the SANS material needs to appeal to a broader audience in order to be commercially successful. I'm not sure if we'll ever see an OffSec-level of insanity from them. However, I haven't had any personal experience with the advanced courses either, so those may indeed be a cut-above.
Logged
WIP: GCFA |
www.infosiege.net
| @infosiege
The day you stop learning is the day you start becoming obsolete.
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
Network Pen Testing
: Ruby on Rails Vulnerabilities / Attacks in BackTrack 5 r3
(0) by
SUdoctstudent
Network Pen Testing
: De-ICE 1.140 released!
(2) by
superkojiman
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.