security problem with Java ScriptEngine

前端 未结 3 1543
醉酒成梦
醉酒成梦 2020-12-11 03:18

I just started to use the Java ScriptEngine to do little extensions to my Application then i noticed that i can import all the java classes in the script and use them withou

3条回答
  •  庸人自扰
    2020-12-11 03:46

    I solved this by putting "importPackage = null" on the top of all scripts, it seems to work but Im not sure if this hack can be avoided.

提交回复
热议问题