Geolocation XSS Tracker Proof of Concept
Jamie found a bit of a scary link this morning that demonstrates a router XSS getting your MAC address and using it to map your current location. Which I'm sure is totally no big deal for anyone.
← Back to Stories (view on slashdot.org)
Even worse, with some clever XSS you can make Slashdot post the same story twice!
Oh wait, that's just shitty editing. Sorry.
Apparently my router is currently sitting in the former main office of the major telco for my area. Which is across town from me.
And here I was thinking it was on my desk.
So, fail
Apparently 00-de-ad-be-ef-00 is in downtown Toronto.
They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance. - Terry Pratchett
The XSS FAQ
http://www.cgisecurity.com/xss-faq.html
Believe me, if I started murdering people, there would be none of you left.
NoScript will protect you from this (XSS) - even if you have it set to globally allow javascript.
Well, I entered my router's MAC just for giggles, and it said "Sorry, didn't find anything". This router has been continuously connected with a fixed public IP address for over a year.
Then I entered my previous router's MAC, and got the same result. The previous router is in storage in the attic, but was in use with very few brief breaks for about 6 years. Also with a fixed public IP address.
Clearly, their MAC geolocation database has a teeny hole - or more likely loads of vast gaping chasms.
Those who can make you believe absurdities can make you commit atrocities. - Voltaire
Short answer: It's easier, and more secure.
If you don't broadcast your SSID, your laptop or other devices will keep polling for it when its not around, thus you're essentially broadcasting your SSID wherever you go.
http://www.howtogeek.com/howto/28653/debunking-myths-is-hiding-your-wireless-ssid-really-more-secure/ is a good read.
On a sort of unrelated note, I was slightly disappointed that even when I hand-fed this script my mac address it still didnt have my location. Then I remembered I changed my mac address to try to fix some problems with comcast, and google had my old one. I wonder if theres anything to be gained by spoofing your mac address as one from another location, possibly to circumvent some geolocked content?
I have two Wireless APs -- one of which is only active occasionally for guests. Here's what I got when I entered my MACs:
Everyday (always on) router: It found my city, but the address was about two miles away.
Guest router: It pinpointed my father-in-law's address. This is strange, because my router has never been located at his house. But, HE HAS CONNECTED TO MY ROUTER. Interesting.
I checked the first address again, and this would be a friend's house, who I once connected his laptop to my network when I was fixing it.
I'm not completely familiar with 802.11, but it would appear that computers that had previously connected to my MAC are regularly pinging this MAC in such a way as to be received by the Google drive-by's and recorded as actual MACs of actual APs. Is there another explanation?
sig: sauer