|
ArticleFlashSecuritySolutions
HOWTO secure your Flash applications
Flash and ActionScript developers must understand that insecure Flash applications impact their users as much as server side web application insecurities. With that knowledge in mind, Flash and ActionScript developers should do ALL of the following:
Input validation is a challenge for Flash applications and server side web applications, alike. Here are some pointers to help.
loadMovie(“http://www.google.com/noRedirectorsInThisPath/” + doesNotContainDoubleDots(_root.someRelativeUrl);
getURL("javascript:someJsFunctionInThePage(\"" + escape(_root.someUserInput) + "\");");Security features introduced in Flash 8Compile your Flash applications with Flash version 8 or higher to take some advantage of newer security features, such as the swliveconnect, allowNetworking, and allowScriptAccess attributes. Unless explicitly necessary we recommending disallowing LiveConnect, networking and script access. A recommended and safer object tag is below: <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" type="application/x-shockwave-flash" data="/MyFlashApp.swf" height="640" width="480"> <param name="allowScriptAccess" value="never"> <param name="allowNetworking" value="none"> <param name="swliveconnect" value="false"> <param name="movie" value="/MyFlashApp.swf"> </object> If the Flash application is compiled with Flash 8 or higher, then the Flash application will not be able to execute JavaScript or create network connections. Further reading
|
Sign in to add a comment

For ActionScript? developers and auditors, there is an Adobe article on Creating more secure SWF web applications: http://www.adobe.com/devnet/flashplayer/articles/secure_swf_apps.html
For doing input validation, there is a Google Code project called Flash Validators which has data validation libraries: http://code.google.com/p/flash-validators/
There are also security chapters within the Flash Documentation. For ActionScript? 3.0 developers: http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7d23.html
For ActionScript? 2.0 developers: http://help.adobe.com/en_US/AS2LCR/Flash_10.0/00000449.html