4 ms·
> If you’ve been linked directly to a Facebook photo, you may have noticed the domain wasn’t facebook.com, but instead something like fbcdn-x-x.akamaihd.net. La
by tomp 13y ago
> If you’ve been linked directly to a Facebook photo, you may have noticed the domain wasn’t facebook.com, but instead something like fbcdn-x-x.akamaihd.net. Large sites load static content from special domains for a few reasons, but primarily to reduce request overhead, and sometimes security.
This works for 4chan, but in case of Facebook, it actually reduces security - since cookies cannot be checked for photos on static domains, everybody can access every photo (as long as they are given an URL), regardless of the photo's privacy settings. In the case of Facebook, they are probably using sufficiently random URLs that mostly mitigate the issue, but a naive implementation could be very problematic.
- moot 13y agoTotally. In our case the main security benefit is that we allow the uploading of SWFs, and it mitigates the threat of cookie stealing via Flash (which we've actually seen attempted). Previously we'd used 4channel.org for this, but I switched that over along with the migration to 4cdn.org.
- zachrose 13y agoI'm interested in learning more about _how_ secure random URL parts are, and what kinds of attacks are seen in practice. Presumably an IP would get blocked after enough 404s?
- moot 13y agoI'm pretty certain 4channers are good at tracking down profile URLs from just a Facebook image URL/filename. I don't think you can access the full album per se, but you can definitely locate the profile.
- gokhan 13y agoIf you give the url of the photo you are allowed to see to someone else, you can give the actual photo as well. I don't get the security risk here.
- trothoun 13y agoIf the urls are guessable then someone could harvest images without having been given urls by authorized users.
- deleted 13y ago[deleted]
- sliverstorm 13y agoI kind of like it for FB. It's nice to be able to easily show a friend a photo, whether or not they are friends with the person who posted that photo and sometimes even whether or not the friend has a FB account.
- brown9-2 13y agoNice for you, but potentially not so nice for the poster of the photo who thinks that only his or her friends can access it.
- sliverstorm 13y agoYeah, I acknowledge it has some less ideal traits as well. Of course, if I can see it, I can show it to anyone, whether or not I can direct-link.
- xerophtye 13y agoyep, this process just speeds up the process. Images are something that really can NOT be protected. If they are visible, they are steal-able
- jsmeaton 13y agoNothing that right-click, save, upload to imgur couldn't accomplish though.
- kuschku 13y agoOr printing out and handing it over.
- jl6 13y agoSounds like a situation where X-Sendfile could help?