# AS2/ System.security.allowDomain(\*), safe ?

**URL:** <https://forum.kirupa.com/t/as2-system-security-allowdomain-safe/296710>\
**Category:** Uncategorized\
**Created:** [September 18, 2009, 5:24pm UTC](https://forum.kirupa.com/t/as2-system-security-allowdomain-safe/296710 "2009-09-18T17:24:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gregson](https://avatars.discourse-cdn.com/v4/letter/g/c77e96/32.png) [@gregson](https://forum.kirupa.com/u/gregson)\
**Post date:** [September 18, 2009, 5:24pm UTC](https://forum.kirupa.com/t/as2-system-security-allowdomain-safe/296710/1 "2009-09-18T17:24:47Z")

</div>

Hi all,

I would like to allow .swf files from external domains to communicate with a base/Main.swf movie. At the same time those .swf files should have NO access to my Main.swf movie objects/movieclips and server docs/scripts. I want to realize this by loading a shim file (Shim.swf) into the Main.swf (both at [myDomain.com](http://myDomain.com)) and then by loading the external, unknown domain .swf (Anyones.swf) into Shim’s container.

The situation is described in the attached diagram.

So far I am getting good results - no direct access to Main.swf objects from Anyones.swf and full access to Shim.swf methods that return basic types taken from Main.swf objects: numbers, strings, boolean. Shim.swf methods cannot return complex types (objects, arrays etc.) to the external domain Anyones.swf. Anyway the returning values are “undefined”.

I would like to know your opinion on how safe is allowing (\*-wildcard in Shim.swf) potentially any domain of .swf files that load into my Shim. Is there any risk of breaking into Main.swf or directly to [myDomain.com](http://myDomain.com) server files ?

The situation is a bit different of those described in Adobe allowDomain related docs since it engages three movies instead of a couple.

Tia,  
Greg
