Image
 
linkedin_logo.png rss_logo.jpg
twitter_logo.png youtube_logo.jpg
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 29 guests online
 
Advertisement

You are here: Home arrow Ethical Hacking Discussions and Related Certificationsarrow Web Applicationsarrow CSRF Black Box Testing
EH-Net
May 18, 2013, 07:17:02 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Go back to The Ethical Hacker Network Online Magazine Home Page
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: CSRF Black Box Testing  (Read 7354 times)
0 Members and 1 Guest are viewing this topic.
JollyJokker
Guest
« on: December 23, 2010, 03:33:57 AM »

Hello all,

I would like to ask any of you, how you approach CSRF testing in Professional PenTest Black Box projects. In my opinion, it seems that CSRF can only be tested through Social Engineering (extremely rare) or by breaking authentication some way (Password Cracking) in order to be able and see how and what requests are handled.

Is there something I'm missing?

Hkk.
Logged
H1t M0nk3y
Hero Member
*****
Offline Offline

Posts: 864



View Profile
« Reply #1 on: December 23, 2010, 08:01:30 AM »

Hi Hordakk, long time no see!  Grin

I did a similar test about 3 months ago. Sorry I am currently in a rush, I will try to add more details later. The way I approached it is in two parts:

A) Figuring out requests between the browser and the server

- Create an account on the tested web site;
- While trying all possible scenarios, sniff every single requests and responses between your browser and the server.

B) Figuring out how the session is managed

- Are they using "anti-CSRF" techniques?
- If not, try to craft a single URL (usually quite complex) that tries to reproduce each functionalities found in step A). Execute then on your logged in machine.
- If at least one crafted URL succeed, you have just found a CSRF vulnerability.
- Finally, just draft a fake email that demonstrate how a user could click on a link and trigger some activity on the web server. You can also add your URL in a fake Christmas executable (dancing santa, etc) or something like that.

CSRF examples almost always use money transfer or things like that. A CSRF vulnerability could ba as simple as login the user out or just change the way things are displayed. But everything found in a pentest is valuable for the client. They will be scared to "miss" something bigger next time...

And all this was achieve in a Black Box pentest, without really involving social engineering (because you can test it yourself).
Logged

OSCP, GPEN, GWAPT, GSEC, CEH, CISSP
JollyJokker
Guest
« Reply #2 on: December 24, 2010, 03:08:33 PM »

Hey there H1t M0nk3y, indeed, it's been a while since my last time in EH-Net Smiley

I was busy by the job/employer-switching process.... actually devoured by it... Tongue

Thank you very much for the helpful reply. I really liked your suggestions and sound 100% valid and actually hassle-free.

My mistake for not making it clear enough from the beginning: the problem in my assignment would only be that there is no way to create an account (3 factor authentication). The black box testing agreement and planning involve unregistered user access. In other words, no way to create a user account and access protected resources.

Nevertheless, your answer will be of help to me in every other occasion!
« Last Edit: December 24, 2010, 03:12:50 PM by Hordakk » Logged
H1t M0nk3y
Hero Member
*****
Offline Offline

Posts: 864



View Profile
« Reply #3 on: December 25, 2010, 06:27:38 AM »

Woo, going after 3 factor authentication is indeed another ball game. I understand more your worries now.

Good luck, I hope you will find something "interesting" on this site... Wink
Logged

OSCP, GPEN, GWAPT, GSEC, CEH, CISSP
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.066 seconds with 22 queries.
 
Exclusive Deal

sansfire13_245x90_cw90.jpg
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:
 
Recent Forum Topics
EH-Net News Feeds
Latest Additions
 
         
Advertisement

© 2013 The Ethical Hacker Network
Joomla! is Free Software released under the GNU/GPL License.