Comment Simple solution (Score 1) 355
Seems like the simple solution is to serve all non-trusted content from a separate hostname. For example, serve avatars or uploaded files from usercontent.example.com.
As far as I can tell this would stop the attack nicely. The malicious SWF would execute in the context of a domain you don't care about.