flex - How vunerable to XSS attacks is Flash? -
the reason why ask i'm telling vendor of ours have use ms antixss library asp.net ui components make, work flex build flash based uis - , wondering if there's equivalent flash (assuming it's vunerable).
the short answer is: flash player has lot of features in place prevent xss attacks, they're built in player itself, there isn't particular library need use. if don't call security-related apis, , don't put config files on server, security-wise, using restrictive settings available. (assuming pay attention how make use of user input.)
more generally, apis have potential lead xss vulnerabilities rule disabled in xss situations unless actively enable them. example, if html page on site loads in flash file site, , flash content tries to, say, make javascript calls page, calls blocked default unless allow them. similarly, if flash content on site loads in components site, components not able introspect parent unless call apis allow them to. there various restrictions on happens when site tries load in flash content site without having allowed it.
for details, highly recommend excellent overview:
with said, since asked sanitizing user inputs, it's worth noting since as3 has no equivalent of eval
command there never question of user input being executed script. however, user input relates content being loaded vector of xss attack. (for example, if append user-input string url load, user cause site load in malicious swf.) such case no different situation load in benign 3rd-party swf, , later replaces malicious content. hence in context of flash, protecting against xss attacks not sanitizing user input making sure externally loaded contents not granted permission run if locally trusted.
and further, since it's useful or necessary relax default restrictions if want interesting 3rd-party content (like flash avatars, components, or banner ads), in situations it's important site admin understand allowing, , how prevent relaxed restrictions exposing vulnerability.
Comments
Post a Comment