开发者

crossdomain.xml and security issues

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开发者_StackOverflow社区 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?


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:

  1. Never put a crossdomain policy file on an intranet site
  2. Never put a crossdomain policy file on a site that uses cookies

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜