If I evaluate a Javascript code submitted from the browser, on the server (Java webapp using Rhino Javascript Engine), does it pose security risk?
The Evaulation of the Javascript is being done only to know if its a valid Javascript.
I don't expect the evaluation to return me anything. I don't expect it store anything, or touch anything. All it should do is tell me is the user submitted valid javascript.
If it is something that poses security issues, can I take some steps to make sure that the JavaScript will not cause any harm to the system?