Report Exposes Flaws In Link Shorteners That Reveal Sensitive Info About Users And Track Their Offline Movements
from the sna.fu dept
URL shorteners: not just for malware/spam delivery anymore!
TL;DR: short URLs produced by bit.ly, goo.gl, and similar services are so short that they can be scanned by brute force. Our scan discovered a large number of Microsoft OneDrive accounts with private documents. Many of these accounts are unlocked and allow anyone to inject malware that will be automatically downloaded to users’ devices. We also discovered many driving directions that reveal sensitive information for identifiable individuals, including their visits to specialized medical facilities, prisons, and adult establishments.The Freedom to Tinker Foundation has just released a study it compiled over the last 18 months -- one in which it scanned thousands of shortened URLs and discovered what they unintentionally revealed. Microsoft's OneDrive -- which uses link-shortening -- could be made to reveal documents uploaders never intended to share with the public. Worse, Freedom to Tinker discovered a small percentage of brute-forced URLs linked to documents with "write" privileges enabled.
Around 7% of the OneDrive folders discovered in this fashion allow writing. This means that anyone who randomly scans bit.ly URLs will find thousands of unlocked OneDrive folders and can modify existing files in them or upload arbitrary content, potentially including malware.And, because Microsoft's automatic virus/malware scanning for OneDrive contents is less than robust, it wouldn't take much for any random person to wreak havoc on any number of devices with access to those contents.
OneDrive “synchronizes” account contents across the user’s OneDrive clients. Therefore, the injected malware will be automatically downloaded to all of the user’s machines and devices running OneDrive.Fortunately for OneDrive users, the scanning method deployed by FTTF no longer works as of March 2016. But this doesn't necessarily mean the accounts are completely secure -- just that one avenue for attack/access has been closed.
Just as disturbing -- but for different reasons -- is the automatic link shortening tied to Google Maps. The links could be manipulated to discover all sorts of inferential information about people's private activities… or at least the activities they never thought they were sharing with the world. The directions and searches uncovered by FTTF's scanning activity potentially reveal plenty of sensitive information about Google Maps users.
Our sample random scan of these URLs yielded 23,965,718 live links, of which 10% were for maps with driving directions. These include directions to and from many sensitive locations: clinics for specific diseases (including cancer and mental diseases), addiction treatment centers, abortion providers, correctional and juvenile detention facilities, payday and car-title lenders, gentlemen’s clubs, etc. The endpoints of driving directions often contain enough information (e.g., addresses of single-family residences) to uniquely identify the individuals who requested the directions. For instance, when analyzing one such endpoint, we uncovered the address, full name, and age of a young woman who shared directions to a planned parenthood facility.The same privacy concerns associated with the indiscriminate use of automatic license plate readers by law enforcement and warrantless access to cell site location info are present here: the reconstruction of people's lives via the "tracking" of their movements. In this case, however, the information generated is more "voluntary" than either of the other listed collections, which are far more passive than searching for directions using a web service provided by a company with an unquenchable thirst for data.
The good news is that the method deployed for the report no longer works for Google Maps-shortened links. But, once again, that does not mean the problems with link shorteners have been eliminated. FTTF points out that the March 2016 change by Microsoft (which claims it had nothing to do with FTTF reporting the vulnerability to it) only affects links generated after that date. Any previous short URLs are still vulnerable to traversal scans.
Google, however, did make a more of a serious attempt to prevent abuse of its shortened links.
All newly generated goo.gl/maps URLs have 11- or 12-character tokens, and Google deployed defenses to limit the scanning of the existing URLs.While this news should be of concern to users of these services, it definitely has to be great news for law enforcement and intelligence agencies. So much for "going dark." Vulnerabilities in web services apparently provide access to otherwise "locked" cloud storage contents and Google Maps -- at least until it was fixed -- generating tons of location data for the taking.
It's also worth pointing out that the method used by Freedom to Tinker to complile this report is basically the same method used by Andrew "Weev" Auernheimer to expose AT&T users' email addresses: altering URLs to uncover data presumed to be hidden. Of course, AT&T's vindictiveness resulted in a 3.5 year prison sentence for Auernheimer. No legal threats have been made towards FTTF, but the sad thing is that security research is inherently risky, as you can never tell whether the entity affected will respond with a bug fix or a police report -- not until after they've been informed.
Thank you for reading this Techdirt post. With so many things competing for everyone’s attention these days, we really appreciate you giving us your time. We work hard every day to put quality content out there for our community.
Techdirt is one of the few remaining truly independent media outlets. We do not have a giant corporation behind us, and we rely heavily on our community to support us, in an age when advertisers are increasingly uninterested in sponsoring small, independent sites — especially a site like ours that is unwilling to pull punches in its reporting and analysis.
While other websites have resorted to paywalls, registration requirements, and increasingly annoying/intrusive advertising, we have always kept Techdirt open and available to anyone. But in order to continue doing so, we need your support. We offer a variety of ways for our readers to support us, from direct donations to special subscriptions and cool merchandise — and every little bit helps. Thank you.
–The Techdirt Team
Filed Under: link shorteners, onedrive, privacy, vulnerabilities
Companies: google, microsoft
Reader Comments
Subscribe: RSS
View by: Time | Thread
You likely won't remember, but...
You likely won't remember a couple of years ago when I chastised you for using URL shorteners. That's when you started putting "[url]" at the end of your links. That said, I just have one comment.
Told ya! :)
[ link to this | view in thread ]
Feymann
This attitude is not new.
Richard Feynmann encountered it at Los Alamos 70 years ago when he explained how the safes could be cracked.
[ link to this | view in thread ]
Re: Feynmann
Personally, I make it a point not to explore things that look like they might be weak, because I cannot prove the weakness without it looking like a hack attack if someone is monitoring the target.
[ link to this | view in thread ]
Ex. geo:40.68924,-74.04454
* https://en.wikipedia.org/wiki/Geo_URI_scheme
[ link to this | view in thread ]
Re: Re: Feynmann
[ link to this | view in thread ]
Re:
[ link to this | view in thread ]
Re: You likely won't remember, but...
[ link to this | view in thread ]
[ link to this | view in thread ]
Lengthening?
The whole point is that these are short enough for Twitter.
I suggest in 7-character bit.ly, they start using the whole keyspace instead of a 1 at the front of another 6-character keyspace. That would help.
But it was odd to me that all the suggestions were pointed toward the shortening providers, as if the users had no responsibility whatsoever.
How about:
1) Don't put your documents in the cloud.
2) If you do put your documents in the cloud, OneDrive isn't secure.
3) Don't make shortened URLs to your documents. And don't share document URLs online.
[ link to this | view in thread ]
Loose Lips
[ link to this | view in thread ]
Uh
[ link to this | view in thread ]
Re: Lengthening?
[ link to this | view in thread ]
Re: Loose Lips
[ link to this | view in thread ]
Re: Lengthening?
I must have missed that part. Where did he suggest that is the solution?
[ link to this | view in thread ]
Scanned
"Scanned" seems a strange description, wouldn't "guessed" be more accurate?
[ link to this | view in thread ]
Re: Re: Lengthening?
[ link to this | view in thread ]
Re: Uh
Otherwise, yes this is a PSA. Short urls can be guessed!
[ link to this | view in thread ]
Re: Scanned
[ link to this | view in thread ]
Re: Re: Loose Lips
The main point is that it's something people do, whether there's a good reason or not, and something that google specifically encourages with a checkbox.
[ link to this | view in thread ]
[ link to this | view in thread ]
Re: Re: Re: Loose Lips
It's totally okay if you received informed consent to use data in that way, but if these are things we consider important shouldn't we strive to protect everyone's data not just our own?
[ link to this | view in thread ]
Re: Lengthening?
That requires that people cam either get a fixed IP address for their home connection, or use a dynamic DNS services to allow use of a private server. Also, if using windows it is a right pain to set up to use SSH for a secure connection to a home server. It almost as if the the proprietary operating system vendors and ISPs are doing their best to ensure that private individuals cannot have any privacy.
[ link to this | view in thread ]
Re: Re: Lengthening?
[ link to this | view in thread ]
So I can still use shorteners...
Of course, the only reason I have generally to use short URLs is if I were posting links on Twitter.
For anything else with less sparse space, I use DDG Bangs. Exempli gratia:
https://duckduckgo.com/?q=techdirt+!w
https://duckduckgo.com/?q=techdirt+moe+anthropomorphic+m ascot+!i
Why doesn't Techdirt have a moe-tan anthro mascot? Do you not love Japan?
[ link to this | view in thread ]
Re: So I can still use shorteners...
[ link to this | view in thread ]
Re: Re: Re: Re: Loose Lips
I don't generally use url shorteners or route people to medical facilities, so my friends should be okay. But it's something that most people probably don't consider; these services take a snapshot of your private browsing history (whatever information is currently in url parameters) and make it publicly accessible and discover-able.
[ link to this | view in thread ]
Re: Re: Re: Lengthening?
[ link to this | view in thread ]
Re: Re: Re: Re: Lengthening?
[ link to this | view in thread ]
Re: Re: Re: Re: Re: Lengthening?
[ link to this | view in thread ]
Re: Re: Re: Re: Re: Re: Lengthening?
[ link to this | view in thread ]
"link shorteners" are scams and abuse magnets
[ link to this | view in thread ]
Not the guy who usually brings up the obvious joke
So size does matter.
[ link to this | view in thread ]
Link shorteners are a terrible idea
1. They eliminate transparency. It's impossible to know where the link goes without clicking on it. This is 100% unacceptable and makes it trivially easy to trick people into clicking malicious links.
2. They unnecessarily involve a third party who now has access to which IP addresses are requesting which links.
Personally, I never follow links that go through a shortener and I urge others to follow the same practice.
[ link to this | view in thread ]
Re: Re: Re: Re: Re: Re: Re: Lengthening?
[ link to this | view in thread ]
Re: Re: Lengthening?
Not as much as you might think. While it's true that your dynamic IP address can change, in practice it rarely actually does. And it almost never changes unless you disconnect and reconnect.
I know a lot of people who run an SSH server from their home machines for remote access, but don't have a dedicated IP and don't use DDNS services.
"if using windows it is a right pain to set up to use SSH for a secure connection to a home server."
This is just not true. Perhaps it used to be years ago, but setting this up on Windows now is pretty simple. It takes about 5 minutes.
[ link to this | view in thread ]
Re: Link shorteners are a terrible idea
E.g. my Medium account.
[ link to this | view in thread ]
Re: Re: Link shorteners are a terrible idea
As to using malware scanners, that would be better than nothing, but malware scanners are not anywhere near good enough to be an adequate solution by themselves.
Adding an attribute that tells you the real URL is a bit pointless because that means that the real URL has to be encoded, so you aren't saving any bytes -- you're actually increasing the number of bytes required because you have to include both the shortened link and the unshortened link. Also, it is a weak move because the URL you'd see would not be the one in use. You are effectively having to take the service's word for it, which means that it's a point of failure that when exploited would make everything even more dangerous by giving you a false sense of comfort.
Also, the problem of unnecessary data leakage remains unaffected by those proposed solutions.
The entire point of link shorteners is one of obfuscation: hide the real URL while presenting you with a shorter encoded one. In my opinion, this is an unacceptably risky proposition.
There is one situation where I'm completely comfortable with them, though: if I were the one running the shortening service, then I'd be much more comfortable with using it, because I retain in control of my data and I can do security audits.
[ link to this | view in thread ]
Re: Re: Re: Link shorteners are a terrible idea
[ link to this | view in thread ]