I'm curious what harm someone can do with just accessing the System.dll namespace in C #.
I played with dynamic code compilation and created a simple website that allows me to enter C # code. This is passed through a web service to a class that matches and runs the code in a new thread and returns (the code should return a string) the result via WS and is displayed on the web page.
Right now I have a simple check to interrupt a thread, if it has been running for more than 5 seconds, to provide something as simple as an infinite loop, it will not crash.
Hypothetically speaking, if I published this web application, could someone seriously or damage the web server with just access to System.dll?
** bonus points for some example! :)
source
share