6 ms·
This link says it's from YouTube but it's not
- duck 17y agoThis title makes me definitely not want to click it.
- Phantom 17y agoCan you suggest something better?
- sp332 17y agoSay where it is sending you, not just where it's not sending you.
- jerf 17y agoIt may suffice to point out in the comments that it redirects to http://securitytube.net/Social-Engineering-Attacks-using-Simple-Redirections-video.aspx http://securitytube.net/Social-Engineering-Attacks-using-Sim... . (As of this posting nobody else has posted this yet.) Also, despite having "video" in the URL, the text says all you need to know. I don't think very many people around here will have a hard time figuring out how this happened. I don't need a video.
- chacha102 17y agoIt is technically a YouTube link, but it is redirecting to securitytube.net. I know this because the Internet I am on blocks YouTube, but not SecurityTube, so going directly to the redirect link works, but the YouTube link does not. At least that is what my browser says: http://www.youtube.com/redirect?username=digitalhook&q=http%3A%2F%2Fsecuritytube.net%2FSocial-Engineering-Attacks-using-Simple-Redirections-video.aspx&video_id=Vgc3NVVpb8c&event=url_redirect&url_redirect=True&usg=UE0DOmwjBRK-mgheFtW1hMTEvh4= http://www.youtube.com/redirect?username=digitalhook&q=h... Looks like someone found a YouTube exploit.
- Phantom 17y agocorrect! Basic idea is to show how easy it is to use this simple redirect against users of social media sites. Most people on HN would have seen this link and trusted it to be from YouTube.
- chacha102 17y agoThis is why redirect links should limit themselves to relative URLs, or limit it to a whitelisted set of domains. (Can anyone think of downsides to limiting yourself to relative URLs or a whitelist of domains?) It is very interesting that Youtube has this vulnerability. Almost every time I implement something like this, I double check the domain name. (This is really easy in PHP)
- sparkiegeek 17y agoThe redirect I found on https://www.google.com https://www.google.com seems like it did have a whitelist. Luckily youtube.com was on the whitelist, so I could re-use the exploit from there. So even whitelists aren't totally safe (and YouTube isn't using the redirect for known friendly sites - seems to be more for tracking purposes). http://news.ycombinator.com/item?id=1259844 http://news.ycombinator.com/item?id=1259844 for the google.com URL
- chacha102 17y agoFurthermore, I can see browsers detecting this type of behavior and prompting the user about it. If a browser sees an encoded URL in the query string, and then gets a location header to go to that URL, and that URL is not on the same domain, it would prompt the user that you are leaving that domain. I can't see many sites that are legitimate, and use redirection techniques that meet all of my criteria.
- IgorPartola 17y agohttp://voice.google.com/ http://voice.google.com/ redirects to http://google.com/voice http://google.com/voice. Technically different domains, but I would be really annoyed if I had to confirm this every time. I suppose you could add a white list, but now we are just annoying people when they first start using a particular install of a browser.
- pchristensen 17y agoWow, I don't like this. My usual tactic of looking for the / after the .tld isn't a general solution anymore. I hope my bank doesn't implement this functionality.
- Phantom 17y agoExactly! Imagine if your bank had such a redirect URL available, Phishing would be so simple.
- harshavr 17y agoSome banks display a customer preselected image after the user name & before entering a password. This seems to be a good solution to phishing if one keeps the username private. Otherwise a site could give you the option of using two part passwords.
- URSpider94 17y ago... and a study a while back showed that, if you simply don't show that image, a large majority of users don't notice. For this reason, the whole "sitekey" phenomenon strikes me as a waste of time.
- invisible 17y agoThis? http://usablesecurity.org/emperor/ http://usablesecurity.org/emperor/ - it is an interesting read. It should also be noted that it's not even a 25% benefit for them, but it does help security, even if slightly. I think lowering phishing 1% could be massive for any major bank.
- ced 17y agoIsn't this incredibly simple to defeat? The phishing site can send your username to the real bank's website and retrieve the image.
- 17y ago
- mrcharles 17y agoI don't know a single non-technical but non-internet-ignorant user who wouldn't be suckered in by this. I've taught people how to scan for valid links, and now they can't even trust that.
- frossie 17y agoHow do you tell civilians to scan for valid links? I say "if you see another domain name/IP address in the URL, don't do it". Maybe that is over-broad, but it works.
- njharman 17y ago> domain name/IP address in the URL civilian what's a domain? Is that like a mailing address? the Uwhat? Stop being so technical!
- abentspoon 17y agoOn proggit, we just found that even techical, internet savvy users can be suckered in by this. http://www.reddit.com/r/programming/comments/bpy7h/think_youre_immune_to_phishing_attacks_see_if_you/ http://www.reddit.com/r/programming/comments/bpy7h/think_you... 1 in 5 attempted to sign in. The results are hardly scientific, but the comments are full of users who were fooled.
- redcap 17y agoLooks like google fixed this one.
- oscardelben 17y agoSorry but I'm not sure users from reddit are all web savvy. It's still interesting that people don't look at urls when asked for passwords.
- johnswamps 17y agoMaybe not reddit as whole, but surely the people reading the programming subreddit are a bit more web savvy than the average person?
- deleted 17y ago[deleted]
- bcl 17y agoThis is not new. Various 'recognized' websites have redirect urls that are not protected. Once the redirect is complete the site it properly identified. If you have to be afraid of what links you click on you are running the wrong software.
- MichaelGG 17y agoIt's not about technical exploits, it's about making it eassier to social engineer and phish. For instance, redirecting to a fake youtube login page. Even slightly more savvy users will look at the original link, click it, then click through and follow instructions. Single signon systems that have redirects aren't uncommon, so the user can be used to seeing that sort of behaviour. I'm surprised youtube has such a basic problem on their site.
- jluxenberg 17y agoIsn't this what SSL is for, proving identity? In this case, even a cursory look at the URL would indicate that something was up. Sure, this makes fishing a little easier, but users need to watch out for themselves. It's a big bad world out there :)
- MichaelGG 17y agoYes, but it's not hard to get an SSL cert for some random domain. So user clicks a youtube link, ends up on "centralised-video-authentication.com", sees SSL icon, all good? I agree with you in general, but youtube shouldn't be making things harder for security.
- lsc 17y agoyou need to watch out, certainly, however you should also encourage webapp providers to write secure code.
- bcl 17y agoSSL doesn't prove identity. It just proves that the connection is encrypted. CA's try to add a layer of trust on top of this with their different levels of certification, but that doesn't guarantee identity.
- tednaleid 17y agoThis is a common exploit. So common that it's #8 on the 2010 OWASP top 10 most critical web application security risks: "Unvalidated Redirects and Forwards". http://www.owasp.org/index.php/Category:OWASP_Top_Ten_Project http://www.owasp.org/index.php/Category:OWASP_Top_Ten_Projec... Every web app developer should review these vulnerabilities before releasing their code to the world.
- xtacy 17y agoInteresting. Facebook had a similar exploit earlier but they seem to have solved it easily by attaching a hash to the redirect: site.com/redirect?l=<url>&h=hash(secret,url)
- alex1 17y agoFacebook also presents you with a warning page before redirecting you: http://www.facebook.com/l.php?u=http%3A%2F%2Fnews.ycombinator.com%2F&h=7b1c5f3088c6ed5de8b5e72d41bf3f3e http://www.facebook.com/l.php?u=http%3A%2F%2Fnews.ycombinato...
- mike-cardwell 17y agoI do the same on my own website. I built a redirector using Apache mod_rewrite, and then secured it using a token and some mod_security configuration. See here: https://secure.grepular.com/Secure_URL_Redirects_using_Apache_ModRewrite_and_ModSecurity https://secure.grepular.com/Secure_URL_Redirects_using_Apach...
- xtacy 17y agoIs the primary motivation behind redirection to another website to track clicks? In situations like Facebook, a redirect effectively changes the REFERRER header so that it doesn't leak any information (about the origin of the request, like: facebook.com/profile.php?id)
- pbhjpbhj 17y agoI'd imagine you are right, primarily click-tracking. Secondarily linkjuice control I expect.
- sparkiegeek 17y agohttps://www.google.com/accounts/CheckCookie?continue=http%3A%2F%2Fwww.youtube.com%2Fredirect%3Fusername%3Ddigitalhook%26q%3Dhttp%253A%252F%252Fsecuritytube.net%252FSocial-Engineering-Attacks-using-Simple-Redirections-video.aspx%26video_id%3DVgc3NVVpb8c%26event%3Durl_redirect%26url_redirect%3DTrue%26usg%3DUE0DOmwjBRK-mgheFtW1hMTEvh4%3D%2F&chtml=LoginDoneHtml https://www.google.com/accounts/CheckCookie?continue=http%3A... This link looks like it's from google.com but it's not. Incidentally I think this only works if you're currently signed in to a Google account, oh yeah it's bouncing from an HTTPS address as well.
- johnrob 17y agoI wonder how many sites have a similar redirect feature for post-login pages instead of outbound click tracking. This feature makes it easy to login from any page, and immediately return to the page upon success. How many sites don't validate the full url before redirecting? Scary thought...
- dotBen 17y agoThis is hardly new, but I agree it is an issue. The answer to this security issue is either: 1) The bit.ly route - store off-site urls your organization wants to link to as a value and give the user an url with just the key in it. 2) Create a secret salted hash of the url and include that with the url in the args. Upon request, the receiver would re-hash the url and compare it to the hash given. Unless someone reverse engineered your hash this system prevents someone casually manipulating a url.
- Vivtek 17y agoIf you're going to that much trouble, perhaps you could set up permissions to add target URLs?
- kleevr 17y agoMy first computer job as a teen was working at a small SEO shop (3 people) writing little cgi/perl scripts for this and that. Yahoo's http server at that time used to take redirect URLs in this format: "http://yahoo/url/*http://exiturl/ http://yahoo/url/*http://exiturl/. They were using these URLs on all search results, I'm guessing to track click-throughs to improve rankings. So I set up a script on our site to load an image using this format with the img src in the exit-url, and for the yahoo-url and we would round robin 'client' links though. Essentially spoofing legitimate search&clicks on yahoo from unique IPs from our site visitors. Over the next two weeks all our sites started bubbling up in the results. This worked for about a month before Yahoo changed something (I'd guess they started validating the http-referrer or the exit-url), and it all stopped working. But, for that brief window of time when it was working, I was the king of the high fives. (FWIW, I don't do SEO work of any kind anymore, and I certainly don't advocate 'blackhat seo'.)
- jrockway 17y agoURLs are not a security mechanism. They are a non-canonical resource locator, where each part is resolved by a different server. It's a way to write a "program" that does a DNS lookup and HTTP query in a simple way. Nothing more, nothing less. If you want security, start a CA, give each site you like its own SSL cert (signed by you), and enjoy.
- invisible 17y agoI've looked at the costs of starting a CA and they are absolutely astronomical for the average person. Not that every person should be able to start a full-fledged CA, but the whole thing is scammy on the tail-end.
- deleted 17y ago[deleted]
- kwamenum86 17y agoThis is a case where the web is only as secure as its most insecure link. Even if your site uses a hash to prevent abusing redirects people can still abuse them. They need only find a site that uses hashless redirects, generate some redirect link using that site, and then create a legit redirect link using your site. Blacklisting certain domain strings in the url would not solve this- new domains are too easy to obtain. Whitelisting would help but may be prohibitive depending on what you are building...
- franck 17y agoThis is why I'm using the RequestPolicy addon on Firefox : http://www.requestpolicy.com/ http://www.requestpolicy.com/ It asks for confirmation when a page tries to redirect unexpectedly like this.