Wifi Skeleton Key has 270M active users, now valued at $1B
techinasia.com
techinasia.com
The app also crowdsources login credentials, so when one user logs into a
hotspot, his or her credentials are added to the database so that everyone
else on the app can also use that hotspot. Users cannot actually view these
credentials so as to protect user data.
Holy shit, that sounds insecure.The rule of thumb: If it runs on the client's device or if the client can read it then it can be cracked, inspected, seen, analyzed and decoded. There is nothing you can do to protect code/data you send to the client's device (for long).
> "... credentials are added to the database so that everyone else on the app can also use that hotspot. Users cannot actually view these credentials so as to protect user data."
But if a client app can download the wifi key from the server and use it to log in, then a modified client app could also download all wifi keys and show them to the user.
There is no practical way for the server to distinguish the original client app from a modified one as long as the user is in control of the hardware and OS it runs on.
sqlite> .tables pwd sqlite> .schema pwd CREATE TABLE "pwd" ("password" TEXT NOT NULL ); sqlite> SELECT * FROM pwd; a30e502c125899a41cb562a7a36b4bd0 c58675db0ba9266fb5307982e4368ab0 5631e619f6e280c0740704a25a8298f6 ...
i don't know how they are using this pwd, but seems like a good starting point.
select * from js_injection where name=?
select * from pwd where hid>=? and hid<? order by hid
CREATE TABLE IF NOT EXISTS local_ap_info ( hid integer primary key autoincrement, ssid text, bssid text, security_level text,
pwd text, x_user text, x_pwd text, stat text, lati text, longi text, type text, html text, create_dt text, last_update_dt text)
CREATE TABLE IF NOT EXISTS private_ap_info(ID integer primary key autoincrement,ssid text,bssid text,security_level text,
pwd text,hid text,create_dt text,last_update_dt text,last_update_opr text,wkflg char(8))
CREATE TABLE IF NOT EXISTS unlock_ap(id integer primary key autoincrement,ssid text,bssid text,security_level text,
pwd text,uploaded integer(1))
Cleaned up your sqlite commands: sqlite> .tables
pwd
sqlite> .schema pwd
CREATE TABLE "pwd" ("password" TEXT NOT NULL );
sqlite> SELECT * FROM pwd;
a30e502c125899a41cb562a7a36b4bd0 c58675db0ba9266fb5307982e4368ab0 5631e619f6e280c0740704a25a8298f6 ...
Looks like it may not be fully seeded on install?Edit:
Getting a different result for the database in the apk:
$ sqlite3 ap8.db
SQLite version 3.8.10.1 2015-05-09 12:14:55
Enter ".help" for usage hints.
sqlite> .tables
android_metadata ap_info js_injection pwd
sqlite> .schema pwd
CREATE TABLE pwd(hid integer primary key autoincrement,pwd text);
sqlite> select * from pwd;
1|df5b74fb19b8b150bcf07bbb4e43456d
2|a1b574f8cf46c461f1e15fa52e3b2110
3|c8c28c03de3e02d7814d86b14dfcf1f5
4|7635726149e6d0f0e8f3e9224b8109dc
Most "pwd" are 32 chars long, some are 64 chars, and a few are 96 chars for some odd reason.ap_info, and js_injection tables are empty so you'd have to get at it after syncing to their servers.
This from the ap8.db from the Android download. I didn't want to install this piece of shit on a real phone, the source does update and get a newer version.
This was an easy CTF.
aload 0 // this
LDC "AES/CBC/NoPadding"
invokestatic javax/crypto/Cipher.getInstance(java/lang/String) : javax/crypto/Cipher
putfield com/snda/wifilocating/support/c.c : javax/crypto/Cipher
Nope.Deleted comment
LDC AES/CBC/NoPadding
#nopaddingThe fact that they had #nopadding in there makes it obvious that they copy pasted this code and has literally no idea what they are doing.
https://i.imgur.com/b6kfN7y.png
Anyways, it is 128 bit CBC. I incorrectly assumed 256 bit because I forgot the hex representation of a char is twice the length. Since they don't have a padding block, the shortest possible output is one block. Thus 16 bytes or a hex string of 32 characters in length.
Well, their Android app started uploading all my stuff to the cloud storage and now I can't even access it.
Not gonna trust Chinese apps for a while. Plus most of them suck, with weird bugs, sluggishness and shit.
Sustained abuse (or sharing) should be simple to detect for a service provider with a network that has multiple, widely-distributed hotspots. In other cases, seeing many different MAC addresses use the same login credentials might be a way to detect abuse, though the MAC might not be sent to the ISP by standard access point firmware.
For example, suppose Alice wants to connect to Bob's 802.11g wifi hotspot using 802.11i-2004 (WPA2) authentication in PSK mode. Charlie and Bob have the password; neither want to give it to Alice, but Charlie wants to facilitate Alice to access Bob's system. The first step of the normal WPA2-PSK process is to take the password and generate the Pairwise Master Key (PMK) by putting the password through a key derivation function (PBKDF2-SHA1). However, the PMK is essentially just a stretched version of the password - so we will assume Charlie also doesn't want to share that. To continue with the connection, Alice needs to compute the same Pairwise Transient Key (PTK) as Bob. The PTK is a hash function computed from the PMK, Alice's random nonce, Bob's random nonce, Alice's MAC address, and Bob's MAC address. Alice could send the latter four pieces of information to Charlie over the existing link, then Charlie could send the computed PTK back to Alice, allowing Alice to make the 802.11g connection without revealing the PMK or password to Alice.
A similar way of transferring enough information to allow the connection to continue is likely possible for other authentication modes like the various 802.11X options.
Of course, implementing this would probably require, at least, a rooted phone (for example, to replace the stock wpa_supplicant on Android).
Also, the server would need to store the password or PMK itself (either in plaintext or encrypted with a key that is kept available at all times to process incoming requests), so it would have a huge database of credentials that could be compromised.
ohh, this baidu https://citizenlab.org/2015/04/chinas-great-cannon/
edit: > Users cannot actually view these credentials so as to protect user data.
this is technically impossible; you need the creds on the device so you can pass authentication; that's the whole point of... any auth protocol. while you could in theory have a remote oracle that signs/encrypts packets without giving the device the key, I don't think WPA-PSK allows this without sending the entire packet. along those lines, if you can send off the packet to be encrypted for wifi, then you can just do the whole connection over that.
2. The way it works is by uploading everything under /data/misc/wifi/wpa_supplicant.conf to its server. See analysis here http://www.zhihu.com/question/23865652
3. It's totally scamware & spyware.
Password re-use by employees who use this app is the real risk IMO.
2) Put credentials in Wifi Skeleton Key.
3) ...
4) Profit!
edit: I guess it's only secure until someone jailbreaks WP8.1
I imagine it would be something like this:
The server will not store the key for long, some minutes max and transmission of any data will be encrypted. The owner of the WiFi hot spot will have to approve every request to share his key (individually or all at once). Then the key of the WiFi hot spot will be sent to those that requested it, after that it will be deleted from the server, it won't even get out of the RAM. The people that request the key will be able to do so with just the push of a button (in the ideal case). All this exchange of data, might happen through 3G so it will be as compact as possible (no adds if on 3G, etc).
If in the same physical space this all will be done locally without sending anything to the server. A smartphone app (at most a few megabytes) will be at the center of this. There will also be a desktop client, that allows you to connect less easily but still better than typing. Connect your smartphone to the computer push a button (depending on setting even without this) and connect to the desired WiFi hot spot.
I am one of those persons that feels that everything is invented, but this is something that I feel is lacking.
Looks like this: http://imgur.com/ShQvqAU
Just give me my free stuff!
The sooner we stop this nonsense about access to the network being restricted geographically by anything other than a complete lack of infrastructure the better off we'll all be.
People won't want to do stupid things like layering a separate network onto their customers access points ( hi xfinity ) or having open networks ( too many small businesses ) or having wifi passwords on a sign by the barista ( please tip the barista ).
0. http://www.daisydowntown.com/blog/2014/2/19/maslows-hierarch...
Can it do this without root privileges on Android? Or does it ask the user to enter the password for the hotspot?
not that it's something I'd like (as I assume when i type it it goes to their servers so the next person doesn't) but that's what makes it tick from the article