News for hackers. Stuff that matters.
Re:Twitter is being investigated over data collection in its... by peterhunt on Sunday October 14, 2018 @06:23PM (#18215853)
That’s completely the opposite of reality. The whole point of link shortening on a social network is to improve security and reduce abuse.
Re:Twitter is being investigated over data collection in its... by freehunter on Sunday October 14, 2018 @06:28PM (#18215888)
How so? By shortening the link, you're hiding where the link goes to. bit.ly/12345 could go to amazon.com or big-scam-with-a-virus.com, and until you click on it you'd never know.
Re:Twitter is being investigated over data collection in its... by shpx on Monday October 15, 2018 @12:01AM (#18217314)
With bit.ly specifically, add a "+" at the end of the url to see what it points to. It also shows you some stats like creation date and number of clicks over time.

https://bit.ly/19y8wyr+

Re:Twitter is being investigated over data collection in its... by TeMPOraL on Monday October 15, 2018 @02:02AM (#18217705)
I also didn't know about that, so thanks. But - how on Earth was I to know? How are all my non-tech friends to figure it out?
Re:Twitter is being investigated over data collection in its... by shoo on Monday October 15, 2018 @06:06AM (#18218555)
> But - how on Earth was I to know?

from a Don Norman design-of-everyday-things perspective the design is completely non-discoverable https://en.wikipedia.org/wiki/Affordance#As_perceived_action...

Re:Twitter is being investigated over data collection in its... by iuwhagtr on Monday October 15, 2018 @06:12AM (#18218576)
What does that matter? Once they've clicked they'll see the URL in the location bar
Re:Twitter is being investigated over data collection in its... by astura on Monday October 15, 2018 @08:44AM (#18219204)
It's useful to know the domain of the link before you click because some people might not want to navigate to unknown sites at work, or at least don't want to navigate to certain sites at work (Facebook, Instagram, YouTube, pornhub, etc, etc.)
Re:Twitter is being investigated over data collection in its... by esnard on Monday October 15, 2018 @01:38AM (#18217594)
It also works for goo.gl links. [0]

Also note that a ".info" suffix might sometimes be easier to type. [1][2]

Too bad most URL shorteners don't support them. :(

[0]: http://goo.gl/vulnz+

[1]: https://bitly.com/19y8wyr.info

[2]: http://goo.gl/vulnz.info

Re:Twitter is being investigated over data collection in its... by TeMPOraL on Monday October 15, 2018 @02:03AM (#18217712)
Fun fact: Google is shutting down their shortener.

https://developers.googleblog.com/2018/03/transitioning-goog...

Re:Twitter is being investigated over data collection in its... by nvr219 on Monday October 15, 2018 @11:17AM (#18220391)
This is an awesome thing I will never remember to use.
Re:Twitter is being investigated over data collection in its... by Ayesh on Monday October 15, 2018 @01:00AM (#18217477)
TIL. Thank you.
Re:Twitter is being investigated over data collection in its... by TheSmiddy on Sunday October 14, 2018 @06:46PM (#18215993)
Once the link shortening service knows it's a scam they can redirect you to a "saved you from being scammed" page.

(although evidence of this happening in practice hasn't crossed my radar, but it's probably because I just don't click those links in the first place)

Re:Twitter is being investigated over data collection in its... by eridius on Sunday October 14, 2018 @07:18PM (#18216162)
You don't need a link shortening service for that. The website and API can just start changing the URL it includes in the tweet if it determines the original URL is a scam.
Re:Twitter is being investigated over data collection in its... by megous on Sunday October 14, 2018 @07:35PM (#18216264)
They can redirect you anywhere. They can also rewrite anything in the URL, like add affiliate IDs or whatever. I'm sure some of them do that, because why not.
Re:Twitter is being investigated over data collection in its... by Alex3917 on Sunday October 14, 2018 @06:27PM (#18215881)
> The whole point of link shortening on a social network is to improve security and reduce abuse.

How does link shortening do that?

Re:Twitter is being investigated over data collection in its... by peterhunt on Sunday October 14, 2018 @06:46PM (#18215994)
See this great post by Matt Jones (from FB antispam/security team) about Facebook's link shortener https://www.facebook.com/notes/facebook-security/link-shim-p...
Re:Twitter is being investigated over data collection in its... by Alex3917 on Sunday October 14, 2018 @07:10PM (#18216115)
That's a decent point about email, but there is nothing they're doing on the website that couldn't be done without a link shortener. And even within the context of email it doesn't really make sense, because email clients can just do the same thing without rewriting the URL.
Re:Twitter is being investigated over data collection in its... by peterhunt on Sunday October 14, 2018 @07:17PM (#18216152)
How would you show an interstitial without rewriting the url?
Re:Twitter is being investigated over data collection in its... by Alex3917 on Sunday October 14, 2018 @08:01PM (#18216378)
Every time a link is clicked, send an event to the server with the URL so that it can be tracked. If the URL is already known to be malicious when the page is generated, either don't include the URL or use javascript to intercept the click event and display the interstitial. If links need to be checked for validity at the moment the user clicks them, then just wait for the 200 response and do the same thing, the performance would be identical either way.
Re:Twitter is being investigated over data collection in its... by peterhunt on Sunday October 14, 2018 @09:50PM (#18216867)
And you think running that type of JS on the page is more secure than a simple redirect? What benefit do we get by adding all of this complexity?

Also -- anyone who views a copy/pasted version of this content won't get this protection.

Re:Twitter is being investigated over data collection in its... by Alex3917 on Sunday October 14, 2018 @10:33PM (#18217040)
> And you think running that type of JS on the page is more secure than a simple redirect?

It's not more secure, but it's not less secure and it doesn't break the web. It also shouldn't add an appreciable amount of complexity, given that most of the heavy lifting to sanitize, parse, and format UGC content already happens on the server. E.g. if you're already turning UGC snippets into an AST on the server so that you can cleanly syndicate them in different formats, having the AST generate some js around URLs isn't a big lift.

Re:Twitter is being investigated over data collection in its... by peterhunt on Monday October 15, 2018 @12:03AM (#18217318)
Requiring js for your security features to work adds more attack surface area but yes, it can be mitigated. But so much extra complexity!

I still don’t understand why you think url shorteners break the web.

Re:Twitter is being investigated over data collection in its... by Alex3917 on Monday October 15, 2018 @09:39AM (#18219520)
> I still don’t understand why you think url shorteners break the web.

How do you know where the links resolve to once FB goes out of business?

Given the fact that there are still lots of people whose entire job is translating 6,000-year-old grocery receipts from Sumeria, it's not at all unlikely that tweets being written today will be still be widely studied and considered important 10,000 years from now. But those short links are unlikely to resolve for even the next 20 years.

Also, adding js should no longer add more attack surface now that we have things like subresource integrity in addition to CSPs.

Re:Twitter is being investigated over data collection in its... by megous on Sunday October 14, 2018 @07:32PM (#18216241)
onclick handler and event.preventDefault
Re:Twitter is being investigated over data collection in its... by makomk on Sunday October 14, 2018 @08:02PM (#18216386)
Replacing links with onclick handlers breaks "open in new tab".
Re:Twitter is being investigated over data collection in its... by megous on Sunday October 14, 2018 @08:39PM (#18216544)
You can use window.open to simulate that. If you're fb, you're probably already whitelisted in the popup blocker.

Though I agree it's not ideal.

Re:Twitter is being investigated over data collection in its... by inetknght on Sunday October 14, 2018 @08:42PM (#18216561)
I'd like to read this but I have facebook blackholed and refuse to change that. Do you have another link?
Re:Twitter is being investigated over data collection in its... by ambicapter on Sunday October 14, 2018 @10:19PM (#18216986)
Re:Twitter is being investigated over data collection in its... by TeMPOraL on Monday October 15, 2018 @02:05AM (#18217716)
TL;DR: clicking on their shortener can trigger just-in-time malware scan; they can retroactively block links already sent to people; they can strip away the Referer; they can inject their own analytics.
Re:Twitter is being investigated over data collection in its... by userbinator on Sunday October 14, 2018 @09:06PM (#18216677)
That sounds like the same authoritarian justification for hiding URLs in browsers and such --- "we'll tell you if it's safe, you don't need to know"...
Re:Twitter is being investigated over data collection in its... by peterhunt on Sunday October 14, 2018 @09:51PM (#18216874)
It's not like you can't see the original URL and manually skip the redirect if you wanted to. It's just that most users won't do that which limits the ROI of spam and phishing campaigns.
Re:Twitter is being investigated over data collection in its... by jest3r1 on Sunday October 14, 2018 @06:29PM (#18215892)
Link shortening makes it easier to brute force.

Shortened links become trackable by a third-party (less secure), obfuscate the real URL (less secure), and can be brute forced easier: https://www.schneier.com/blog/archives/2016/04/security_risk...

Re:Twitter is being investigated over data collection in its... by unstuckdev on Sunday October 14, 2018 @07:20PM (#18216176)
The point of link shortening was to allow links within the constraint of 140 characters.