crossdomain.xml 和安全问题
我阅读了很多有关使用 Flash、Javascript 等进行跨站点脚本编写的内容,还发现了几个包含允许从任何服务器访问的 crossdomain.xml 的网站列表。例如 flickr.com 信任所有域。
有人可以解释一下为什么这看起来很安全并且不会导致会话劫持等攻击吗?是否因为这些 crossdomain.xml 仅在子域上有效,因此攻击者无法获取会话密钥?
I read a lot about cross-site scripting with Flash, Javascript etc. and also found several lists with websites that have a crossdomain.xml that allows access from any server. For example flickr.com trusts all domains.
Can somebody explain me why this seems to be secure and doesn't lead to attacks like session-hijacking? Is it because those crossdomain.xml is only valid on subdomains, that don't make it possible for an attacker to get the session key?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 crossdomain.xml 文件 可能非常危险,并且可能使网站遭受严重攻击。有两条经验法则可防止跨域策略打开安全漏洞:
跨域策略文件的有效使用在于站点上例如 api.flickr.com,其中只有不使用 cookie 的服务。
Using crossdomain.xml files can be very dangerous and can open websites up to serious attacks. There are two rules of thumb to prevent crossdomain policies from opening up security holes:
A valid use of a crossdomain policy file is on a site like api.flickr.com where there are only services which do not use cookies.