WPF Skin Skinning Security Concerns

Posted by Erik Philips on Stack Overflow See other posts from Stack Overflow or by Erik Philips
Published on 2010-04-09T21:10:01Z Indexed on 2010/04/09 21:13 UTC
Read the original article Hit count: 360

Filed under:
|
|

I'm really new to the WPF in the .Net Framework (get that out of the way). I'm writing an application where the interface is very customizable by simply loading .xaml (at the moment a Page element) files into a frame and then mapping the controls via names as needed. The idea is to have a community of people who are interested in making skins, skin my application however they want (much like Winamp).

Now the question arises, due to my lack of Xaml knowledge, is it possible to create malicious Xaml pages that when downloaded and used could have other embedded Iframes or other elements that could have embed html or call remote webpages with malicious content? I believe this could be the case.

If this is the case then I two options; either I have an automated process that can remove these types of Xaml files by checking it’s elements prior to allowing download (which I would assume would be most difficult) or have a human review them prior to download. Are there alternatives I’m unaware of that could make this whole process a lot easier?

© Stack Overflow or respective owner

Related posts about wpf

Related posts about .NET