You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are you absolutely sure you want to do this? Security is a huge issue as soon as you allow arbitrary user code - if an attacker can inject any content that gets parsed through cjson into the system, then they can run any public function in your executable.
If you do add it to the system, how do I turn it off completely when I use this very helpful project? :-)
That's a good question. Function injection is only allowed in CJSON's lexical scope. i.e., functions which are defined within CJSON file is only allowed for execution. No external function execution is allowed.
If someone injects a function using inject(), deserializer will throw SyntaxNotAllowedException.
Once this feature is released, you can host a rules.json file through which you can control the keywords and restrictions.
User should be able to evaluate functions which can be executed based on language used.
Below is the format:
User should be able to use the defined function as below:
The text was updated successfully, but these errors were encountered: