News for hackers. Stuff that matters.
Re:WhatsApp Hack by JoeCortopassi on Thursday December 06, 2012 @09:43PM (#4885219)
Am I missing something? "Give me your number and password, and I'll show you that WhatsApp is insecure". Really?

There is definitely a place to out a company that fails to secure things consistently, but asking for credentials in this way absolutely wrecks your credibility to anyone but the most trusting of people that already knows you. No one should input anything into this form, even if it's credible. To do so, is assuming that it is not being stored in any way (unprovable), and that it is following security best practices (on a site that's not even operating on a secure connection). I'm sure you are a standup guy, but I hope we never get complacent with blindly accepting "hack checkers" like the ones that popped up around other notable hacks recently

Re:WhatsApp Hack by wajdis on Thursday December 06, 2012 @09:46PM (#4885231)
It's so easy to get the password. Anyone with you on the same WIFI can get your WIFI Mac address about passwords: https://plus.google.com/109599361571767865655/posts/5ijzy29i...
Re:WhatsApp Hack by damian2000 on Thursday December 06, 2012 @09:57PM (#4885258)
Might be a good idea to publish the source to your tool in a gist or something along with this explanation...

First impression for most users would be that this is credential harvesting webpage with who knows what running behind it.

Re:WhatsApp Hack by wajdis on Thursday December 06, 2012 @10:04PM (#4885272)
The page has been updated, and the source code is here: https://github.com/whatsapp/WhatsAPI/
Re:WhatsApp Hack by dutchbrit on Friday December 07, 2012 @02:36AM (#4885937)
Based off https://github.com/venomous0x/WhatsAPI

Have you played with the node.js clients?

Re:WhatsApp Hack by Cyril-Boh on Thursday December 06, 2012 @11:24PM (#4885477)
Tried using this source. Can't seem to get the number and MAC combination right.

Using my own phone and account BTW.

Re:WhatsApp Hack by wajdis on Friday December 07, 2012 @02:24AM (#4885914)
What's ur device ? (Android or iOS ?)
Re:WhatsApp Hack by tejasm on Friday December 07, 2012 @02:48AM (#4885967)
edit

Worked for my android. Still not working for iOS.

Re:WhatsApp Hack by Cyril-Boh on Friday December 07, 2012 @02:52AM (#4885975)
iOS

I was using \test\whatsapp.php.

Re:WhatsApp Hack by taylorbuley on Thursday December 06, 2012 @10:12PM (#4885295)
FTP. AIM. These are equally if not more insecure for the same reasons. Not to mention that if you're on my network a "Whatapp" account is the least of my concerns.
Re:WhatsApp Hack by mirashii on Friday December 07, 2012 @07:22AM (#4886599)
No, they're not.

1) Your mac address is available to even passive sniffers without the key to an encrypted network. In some circumstances you don't even need to be connected to a network to grab someone's mac address (iPhones in particular love looking for networks loudly).

2) FTP and AIM passwords can be changed. Yes, a passive sniffer on the same network can still get them, but this is a significantly harder task than getting someone's mac address, and there's no way to change the goal.

3) Brute force attacks become within the realm of possibility. Have someone you know has an iPhone 5 and uses WhatsApp? The first chunk of the mac address is assigned by vendor, so you've already narrowed the search space down drastically by half to needing to guess 6 hex digits.

Re:WhatsApp Hack by chimeracoder on Thursday December 06, 2012 @11:34PM (#4885501)
> Not to mention that if you're on my network a "Whatapp" account is the least of my concerns.

How about if you're on someone else's network (work, a friend's, an airport, etc...)

Re:WhatsApp Hack by vowelless on Thursday December 06, 2012 @10:04PM (#4885271)
But it isn't easy to get the IMEI #. In my opinion, it does provide some sort of security.
Re:WhatsApp Hack by DrJokepu on Friday December 07, 2012 @03:34AM (#4886076)
It's trivial to get these values from software and it is (was) a very common practice amongst app developers, advertisers etc. to collect this information and store it in a database. I can guarantee you that the IMEI in the majority of these databases is stored as plaintext. Due to the easy access to these numbers as well as the large number of massive existing databases of them, IMEI numbers are simply not suitable password equivalents in any way and merely suggesting the contrary makes our world a less secure place.
Re:WhatsApp Hack by wajdis on Thursday December 06, 2012 @10:08PM (#4885283)
The IMEI is harder, but any one who can grap your phone can enter *#06# to get your IMEI. Also, it's available on the box of your device, and many apps store the IMEI to identify your device.
Re:WhatsApp Hack by lawnchair_larry on Thursday December 06, 2012 @10:04PM (#4885270)
I see what you are trying to do, but I think it would work better if you requested the MAC address instead of the password. The way it's written now, it looks like you're asking for the password.

I support this though, because WhatsApp has known about this for a couple years now and refuse to do anything about it.

The short version is, anyone can steal your messages if they have your mac address. Anyone on the same network as you, or within wifi range -- even if not connected to a wifi network, but with the radio on -- has your mac address. And you can never change it, so once someone snarfs it once, they get your account for life.

Edit: From the README on the GitHub page:

Password Overview

    Android: MD5 hash of reversed IMEI (Credit: WhatsAPI Original Authors)
    iOS: MD5 hash of the MAC address repeated twice (Credit: Ezio Amodio)
    Windows Phone: MD5 hash of reversed DeviceUniqueId (Credit: Robe Fernández)*
Re:WhatsApp Hack by 0x0 on Friday December 07, 2012 @05:32AM (#4886363)
I had the impression that iOS apps that use any API to retrieve the MAC address is banned from the store, similar to the way calls to retrieve the UDID are.

Maybe they are grandfathered in? Would they be banned if they pushed an update? Are Apple afraid of kicking out an iMessage competitor?

Re:WhatsApp Hack by RyanZAG on Friday December 07, 2012 @03:52AM (#4886116)
There is no real way WhatsApp can fix this problem without large consumer backlash from existing customers. The reason WhatsApp took off is because 'it just works' without requiring creating accounts and other nastyness.

You just install it, whack in your phone number, and off it goes. Swap to a new phone? Whack in your phone number, and you're back on your account.

This is why WhatsApp has beaten out the competition (along with good marketing in airports, etc) - and there is A LOT of competition. By fixing this 'flaw', WhatsApp will fail. The best they could do is offer an 'advanced security' option for uses who want more secure communication, but the default insecurity will have to stay.

TLDR: Insecurity is the very bedrock of WhatsApp's popularity. It cannot be 'fixed' at this point.

Re:WhatsApp Hack by dutchbrit on Friday December 07, 2012 @04:21AM (#4886184)
Of course they can! Just force people to add an additional password to their account on the next app update.
Re:WhatsApp Hack by RyanZAG on Friday December 07, 2012 @04:31AM (#4886210)
People will get confused, forget their passwords, and swap to a new insecure system.
Re:WhatsApp Hack by 0x0 on Friday December 07, 2012 @05:31AM (#4886357)
If it keys off the MAC for a pseudo password, how can this scheme work if you swap to a new phone?
Re:WhatsApp Hack by kapnobatairza on Friday December 07, 2012 @11:10AM (#4887517)
With WhatsApp you have one account per phone number that you activate on each phone through SMS authentication.

So if I installed WhatsApp to my iPhone 4 under number 917-555-5555, WhatsApp will then text that number with an activation code and when I enter that activation code in the WhatsApp app, it ties that number to my phone with that phone's MAC address/IMEI.

If I then upgraded to the iPhone 5 under the same number, the process repeats itself and now ties that number to the iPhone 5 with it's MAC address/IMEI. I will now lose access to WhatsApp on that number on my iPhone 4.

Re:WhatsApp Hack by zhuzhuor on Thursday December 06, 2012 @09:43PM (#4885220)
OK... I assume it's not a phishing site, which requires your phone number and password...
Re:WhatsApp Hack by wajdis on Thursday December 06, 2012 @09:47PM (#4885240)
I don't store anything.
Re:WhatsApp Hack by ipince on Thursday December 06, 2012 @09:59PM (#4885265)
Hopefully you don't :-) still, it would be pretty unwise for people to input their credentials there.

Instead, just put the code up on github and link to it. The curious but cautious people would be able to verify the hack then

Re:WhatsApp Hack by yen223 on Thursday December 06, 2012 @10:47PM (#4885368)
That's what a hacker would say!
Re:WhatsApp Hack by dutchbrit on Friday December 07, 2012 @02:26AM (#4885920)
I wrote a bit more in detail about this a while back: http://samgranger.com/whatsapp-is-using-imei-numbers-as-pass...

Whatsapp, if you are listening, do the following.. Add an extra column to your database table where user 'credentials' are saved. Lets call it 'password'. Or call it realpassword if you're using password for the md5'ed IMEI/MAC. Now, leave it empty for a moment..

On your next client update, force your users to fill in a password. Don't save it plaintext mmkay, drop a whole pot of salt all over it and save it in the password column. If user has a known password, check if their client sent the correct one.

You can still check IMEI or MAC address too if you want, but only as an extra 'check' to verify user is logging in from their mobile and not some fishy desktop client. Again, the latter isn't secure but is meant as a fallback.

Re:WhatsApp Hack by danso on Thursday December 06, 2012 @09:57PM (#4885259)
Instead of just saying "click here to see all the articles about this security hole" it would go a long way to provide a concise synopsis for those of us who don't use whatsapp but are still interested in understanding your approach
Re:WhatsApp Hack by hrrsn on Friday December 07, 2012 @05:08AM (#4886303)
WhatsApp was never designed with security as a priority. I remember a couple of years ago after it took off investigating it with a packetsniffer when I noticed the phone number verification text let you in the second you finished typing the PIN. I recall either the server was sending the PIN to the device or the device was telling the server what PIN to send in the text. Ridiculously easy to impersonate anyone at that point. Last I checked they had fixed that hole but I'm not surprised others have popped up.
Re:WhatsApp Hack by ipince on Thursday December 06, 2012 @09:44PM (#4885223)
Can you clarify what each input means? When the help text for the "name" field of a form says "the name you'd like to use".. well, it's not very helpful. Thanks :-)
Re:WhatsApp Hack by wajdis on Thursday December 06, 2012 @09:47PM (#4885234)
Thanks for the note, It's the name that show in Push notifications on iOS and Windows devices.
Re:WhatsApp Hack by Zor on Thursday December 06, 2012 @10:46PM (#4885363)
I am getting "Wrong password" trying with my own phone (iphone 4), using my wifi mac address (all caps, with :)
Re:WhatsApp Hack by Zor on Thursday December 06, 2012 @10:56PM (#4885386)
My number is not from the US. Maybe you are creating the JID using the US country code + the phone number field instead of using the full number field?
Re:WhatsApp Hack by wajdis on Friday December 07, 2012 @02:26AM (#4885919)
No, simple enter your number without + and the mac address once with the two points, just like XX:XX:XX:XX:XX:XX
Re:WhatsApp Hack by Zor on Friday December 07, 2012 @02:52AM (#4885976)
Tried again here, not working. Do you know if it is possible to sniff the iphone connection and get the md5? I have generated the hash from the duplicated mac and want to check that it is identical.
Re:WhatsApp Hack by Zor on Friday December 07, 2012 @04:44AM (#4886253)
The password algorithm changed in the lasts versions of Whatsapp, at least in iPhone. You can get a Base64 of the md5 from the application directory, but it doesn't match the imei or mac md5. I am trying to break mine with hashcat to see what kind of pattern it follows.
Re:WhatsApp Hack by wajdis on Friday December 07, 2012 @05:59AM (#4886411)
I guess you are trying to do the MD5 yourself, while you should simply just enter the mac address with the : . The script will automatically generate the hash for u.
Re:WhatsApp Hack by sievert on Thursday December 06, 2012 @11:20PM (#4885463)
Same here, tried entering +, no plus, just the mobile number etc. Also on iPhone 4 and I'm in Australia
Re:WhatsApp Hack by a_rahmanshah on Friday December 07, 2012 @04:51AM (#4886266)
How can I get the MAC address for iPhone? I found one, but it is separated with `-` and not with `:`.
Re:WhatsApp Hack by hrrsn on Friday December 07, 2012 @04:59AM (#4886284)
Settings -> General -> About -> "WiFi Address"
Re:WhatsApp Hack by Zor on Friday December 07, 2012 @06:11AM (#4886442)
iPhone Mac address "Wrong Password" explained: https://github.com/venomous0x/WhatsAPI/issues/192
Re:WhatsApp Hack by yogeshkhatri on Friday December 07, 2012 @01:06AM (#4885721)
so if someone has my IMEI, can i save my account from him as i can't change my password(IMEI)
Re:WhatsApp Hack by dutchbrit on Friday December 07, 2012 @02:26AM (#4885918)
No, you'd be screwed. The password is technically an inverse of your imei with a md5 encryption on top (Android).