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 31 guests and 1 member online
 
Advertisement

You are here: Home arrow Ethical Hacking Discussions and Related Certificationsarrow Web Applicationsarrow Tools for analyzing cookies stored on locally?
EH-Net
May 25, 2013, 09:57:47 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: Tools for analyzing cookies stored on locally?  (Read 5944 times)
0 Members and 1 Guest are viewing this topic.
blueaxis
Newbie
*
Offline Offline

Posts: 44


View Profile
« on: September 16, 2011, 04:56:02 PM »

Just wondering if there is any tool within metasploit or elsewhere that can glean information from the cookies stored locally. Something that covers both encrypted and unencrypted cookies.
Logged
MaXe
Hero Member
*****
Offline Offline

Posts: 669


I've just upgraded myself to a cyborg muahahaa!!1


View Profile WWW
« Reply #1 on: September 18, 2011, 11:39:47 AM »

There are two tools. The first is you and your brain doing a manual approach while perhaps reviewing the code related to the authentication, to see if you can set any magic cookies.

The other second tool, could be Burp Suite (Free), which can analyse cookies to see if they follow any pattern.

I'd recommend analysing the code if it's possible, as you will be able to spot flaws almost instantly compared to guessing with programs that tries to compute the algorithm used, as this may not be accurate and / or produce any good results.

Imagine you know there's a magic cookie, that grants admin access rights / privileges. This value is: !"dnjc%T5jjfklaj¤%&%¤jnsad#¤#¤%dnxsam%

If you review the code, you will find this within a few minutes. Of course, this approach is only possible with code auditing / review.

The other method is to see if you can bruteforce this value, which may take up way too long time. Often what you do is you grab a lot of cookies from a site, which you've produced yourself via e.g. Burp and then you analyse these. You'll have to choose this alternate method, in case the target uses closed source scripts / programs, that are not available for code review by any means possible.

If you gain a foothold into e.g., a webserver, downloading a copy of the source code in case it is closed source, could also be a good idea as you can analyse it for further vulnerabilities and thereby have several entry points. Just my 2 cents  Smiley
Logged

I'm an InterN0T'er
BillV
Hero Member
*****
Offline Offline

Posts: 1892


View Profile WWW
« Reply #2 on: September 24, 2011, 09:34:20 AM »

http://www.nirsoft.net/utils/#browser_tools
Logged
blueaxis
Newbie
*
Offline Offline

Posts: 44


View Profile
« Reply #3 on: September 24, 2011, 10:45:57 PM »

Thanks for the responses - I will work on your suggestions.
Logged
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.049 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.