General Chat
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsGeneralGeneral Chat

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Dell PowerEdge Servers
  #1  
Old October 13th, 2007, 03:38 PM
tkarkkainen's Avatar
tkarkkainen tkarkkainen is offline
Moderator
Click here for more information
 
Join Date: Apr 2007
Location: Finland
Posts: 2,310 tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 7832 Folding Title: Novice Folder
Time spent in forums: 6 Days 4 h 58 m 15 sec
Reputation Power: 4
78 000 passwords and password hashes stolen and published

Swedish(?) crackers have stolen and published a list of 78 000 MD5/SHA1 hashes and cleartext passwords. Almost all of the passwords belong to Finnish people, so unless you're a Finn, you probably don't need to worry. If you are, see this thread.

The reason I brought this up here is that we all, as web developers, can learn something from this. The first lesson is that there indeed are people who steal login information they can't use to get money. The second lesson is that you must always validate user input and salt your hashes.

The third lesson can be gained by analyzing the password list itself. People use very weak passwords!. Here's a list of common passwords from the list, which may or may not have short numeric strings attached to them. Most numeric strings were four numbers, so I'm guessing they could be using their cell phone or bank card PINs.
  • the user's username
  • the user's first name
  • the name of a loved one
  • a pet's name
  • the user's phone number
  • the user's social security number
  • the user's birthday
  • "salasana" (Finnish for "password", a lot of these on the list)
  • "tietokone" (Finnish for "computer", a lot of these too)
  • "villevalo" (See the Wikipedia article)
  • "perkele" (Wikipedia)
  • "pillu" (a very informal word for female genitalia. The male counterpart was found too)
  • "helppomuistaa" ("easytoremember")

NOTE: The list above contains actual passwords from the list. WIthout knowing the username and the service they are used for, however, they are useless, so that's why I dared to post them. Besides, those passwords are so damn weak, that I think they had it coming.

The last one sums up what people feel about passwords -- they need to be easy to remember. They have no problem with security, since they don't believe they would ever be targets. The developer of the login system, however, has the power to decide what kind of passwords can be allowed. I recommend the common but not too common check that the password has at least one lowercase, one uppercase and one numerical character, and is at least eight characters long. I'm also starting to think that a dictionary check wouldn't hurt.

Also note that people tend to use the same password for multiple services. So if another service is cracked, it can cause additional work for you. On the other hand, if your service is cracked, it can even compromise people's emails and other sensitive information.

More: F-Secure
__________________
Fight Internet censorship!

Code:
()  ascii ribbon campaign - against html e-mail 
/\  www.asciiribbon.org   - against proprietary attachments

Last edited by tkarkkainen : October 13th, 2007 at 04:01 PM. Reason: tags..., details

Reply With Quote
  #2  
Old October 17th, 2007, 02:27 AM
lig's Avatar
lig lig is offline
"Forum Nazi"
Codewalkers Demi-God (4500 - 4999 posts)
 
Join Date: Apr 2007
Location: Jacksonville, Fl
Posts: 4,719 lig User rank is Private First Class (20 - 50 Reputation Level)lig User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 Days 4 m 29 sec
Reputation Power: 6
ready to be scared - read http://www.codinghorror.com/blog/archives/000949.html
__________________
life is a game.... Have fun
-----------------------------
http://www.phpwomen.org
strength in unity

PHPCommunity IRC
#phpc on freenode

Reply With Quote
  #3  
Old October 21st, 2007, 08:48 AM
tkarkkainen's Avatar
tkarkkainen tkarkkainen is offline
Moderator
Click here for more information
 
Join Date: Apr 2007
Location: Finland
Posts: 2,310 tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 7832 Folding Title: Novice Folder
Time spent in forums: 6 Days 4 h 58 m 15 sec
Reputation Power: 4
That's not so scary after all. Salting is an easy way to beat precalculation of hashes. I highly recommend the article linked to from the codinghorror.com article: Enough with the Rainbow Tables: What You Need to Know About Secure Password Schemes.

I've come to the conclusion that something like the following might be a nice way to hash passwords:

PHP Code:
 $hash sha1($username.sha1($password).$join_date.file_get  _contents("/path/to/separate/salt_file")); 


The reason I've put the sha1 hash of the password inside the string to be hashed is because if someone did go through all the trouble of cracking the above string, they would still need to crack the actual password. This will buy some time.

The username is included so that if two people who have joined the same day happened to have the same password, their hashes would be different. Join date is there just to increase the size of the string to be hashed.

salt_file should be placed outside the root directory of the web site to reduce the risk of accidental exposure. The salt should be long and consist of (truly) random characters. A separate salt file also allows you to create expiring passwords: just have a script replace the salt file periodically.

Ideas? Anything to add?

Reply With Quote
Reply

Viewing: Codewalkers ForumsGeneralGeneral Chat > 78 000 passwords and password hashes stolen and published


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway