F. Baum
F. Baum

Reputation: 300

C# Pluginsystem security

I've successfully implemented a Pluginsystem in my WPF-Application:

Every Plugin has its own *.dll to be loaded and instantiated at the start of my App.

Are there any security issues caused by the fact that someone could develop a plugin and write everything in the constructor she/he wants to?

If so, how could I prevent this?

Upvotes: 0

Views: 64

Answers (1)

J.R.
J.R.

Reputation: 167

Think what you are looking for is AppDomain, here you can create an isolated sandbox and grant permissions for the running code. For example a specific folder for reading/writing.

https://msdn.microsoft.com/en-us/library/bb763046(v=vs.110).aspx

Upvotes: 1

Related Questions