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

You are here: Home arrow Ethical Hacking Discussions and Related Certificationsarrow Web Applicationsarrow Hashing of URLs in registry (IE7)
EH-Net
May 24, 2013, 03:41:27 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: Hashing of URLs in registry (IE7)  (Read 5134 times)
0 Members and 1 Guest are viewing this topic.
sommersb
Newbie
*
Offline Offline

Posts: 6


View Profile
« on: June 02, 2010, 03:06:04 PM »

I'm trying to debug a problem we have with an in-house web app and saved passwords.  In doing so I've run into something of a roadblock.  I've read how IE7 saves passwords under HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\IntelliForms\Storage2

Apparently the key name should be a SHA1 hash of the URL, and then the data is the encrypted login data.  What is throwing me is trying to verify the hashes.  If I take a simple URL and then have IE save my password at that site, I see a new key created.  I'd like to know exactly what string (URL) is used to generate this key.  When I take the URL and generate a hash in Linux (sha1sum), I get a 40 character hex string (20 bytes).  When I look in the registry, all of the entries in Storage2 are 42 characters (21 bytes).

I found a couple of references that said the first byte in the registry was some sort of checksum, but removing that still doesn't get me the right answer.

To further confuse matters, if I generate a sha1 sum on my linux box, I get a different hash than from several websites.  Clearly I am missing something.  For example:

#echo hello | sha1sum
f572d396fae9206628714fb2ce00f72e94f2258f  -

but when I visit several sites that claim to have hash generators, the string "hello" produces this value:
aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d
(http://www.daveproxy.co.uk/tools/sha1_hash_generator.php)
(http://www.ideaspace.net/misc/hash/)
(http://pajhome.org.uk/crypt/md5/)

So what am I doing wrong?

Thanks, Brian
Logged
Ketchup
Hero Member
*****
Offline Offline

Posts: 1021



View Profile
« Reply #1 on: June 02, 2010, 04:38:52 PM »

The echo command will append a trailing "newline" char to your string.   That will throw off the hash value.   Check out the following link:

http://www.mydigitallife.info/2008/12/10/how-to-calculate-and-generate-md5-hash-value-in-linux-and-unix-with-md5sum/
Logged

~~~~~~~~~~~~~~
Ketchup
sommersb
Newbie
*
Offline Offline

Posts: 6


View Profile
« Reply #2 on: June 02, 2010, 08:44:35 PM »

Ah, very good catch - thanks!

Now I just need to figure out how IE creates the hashes from URLs in the registry...

Logged
Ketchup
Hero Member
*****
Offline Offline

Posts: 1021



View Profile
« Reply #3 on: June 02, 2010, 10:33:32 PM »

There must be some sort value prepended or appended to the URL.   I can't quite get the hash in the registry to match the actual URL. 

I know that Cain and Abel can extract these passwords.   Also another utility called IEPassView can do the same (http://www.nirsoft.net/utils/internet_explorer_password.html)

Perhaps this link will help from a development perspective.  (I haven't had the chance to read it).

http://www.insidepro.com/doc/pc002e.shtml
Logged

~~~~~~~~~~~~~~
Ketchup
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.084 seconds with 23 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.