I'm working on a closed source java app that analyzes JAR files. Since java can be easily decompiled, and obfuscation really isn't a big deal, I want to provide an online service that will execute the app on my server and return it's result much like fernflower here: www.reversed-java.com/fernflower/.
Problem is, I fear that's a recipe for disaster having my app load any potentially harmfull jars on the server, even though i'm never running the jars. All i'm doing is load them using URLClassLoader and JarInputStream.
Can a jar I am loading override classes in my original app in order to execute malicious code, or mess up my program?
What are the risks in dynamically loading jars?