Why crossdomain.xml is a good thing
Thursday 28 July 2005 – Filed under: Flash – 4 Comments
I regularly encounter Flash users as well as clients that wonder why the Flash player implements a cross-domain sandbox security model using policy files named crossdomain.xml. I drew 6 simple diagrams that demonstrate its use.
As you can see in the slides below, a malicious user could steal data from your LAN. This is made possible by the fact that every SWF file you view runs locally on your machine. This means that a SWF would have HTTP access to all machines behind the company firewall. Not a good thing.
To prevent this, every server other than the one the SWF is loaded from, needs to have a crossdomain.xml file available, listing all domains that have access to that particular server. If the crossdomain.xml file is either absent or does not list the domain the SWF originates from, the SWF won’t have access to that server.
The crossdomain.xml file prevents SWFS from snooping around on the LAN. And it not only works for servers within your LAN, but also for other servers on the Internet.
Please note that, at best, I’ve only scratched the surface of the whole policy file system. For more information, refer to this helpful page at the Adobe website.
« previously: Project: Volkswagen Transporter next: More FDT details released »
4 Responses
Leave a Reply
Recent Articles
- Running Google Chrome OS under Parallels
- AS3 Tweetr library suffers from the Twitpocalypse bug
- Digital TV on Mac Mini, part 2
- Digital TV on Mac Mini, part 1
- New bike
- FLV Player 2.0.25 released
- No custom headers for Flash file upload. Why?
- Building AIR with FDT
Advertisement
Categories
- Art & Design (4)
- Flash (38)
- FLV Player (9)
- Software (17)
- User Experience Design (3)
- Various (10)
- Work (6)
Tuesday 4 September 2007 at 17:33
[...] http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14213&sliceId=1 http://www.martijndevisser.com/blog/2005/why-crossdomainxml-is-a-good-thing/ [...]
Wednesday 17 October 2007 at 09:32
[...] Resources: Using cross-domain policy files Overview of permission controls Cross-domain policy file usage recommendations for Flash Player Allowing cross-domain data loading About compatibility with previous Flash Player security models cross domain policy files (moock.org) Why crossdomain.xml is a good thing [...]
Friday 22 May 2009 at 02:19
[...] I finally figured it out. At least one of two reasons. About 4 years ago Martijn de Visser described one of them – defending your internal network from the attacks. But there is another way reason why [...]
Thursday 4 February 2010 at 14:51
Hello,
I am having error of cross domain policy. I am working on PHP FlEX project. Due to some reason i want to call one JSP file through HTTPservice. JSP file returns string value value true or false.
But while running the application it gives me channel’s security error. I include cross domain policy file. But It is giving the same error.
Will you please help me to solve this problem.
Thanx in advance
Regards,
Pradip Jadhav