Object-Graph Navigation Language (OGNL) is an open-source Expression Language (EL) for Java. Due +to its ability to create or change executable code, OGNL is capable of introducing critical +security flaws to any application that uses it. Evaluation of unvalidated expressions can let +attacker to modify Java objects' properties or execute arbitrary code.
+The general recommendation is to not evaluate untrusted ONGL expressions. If user provided OGNL +expressions must be evaluated, do this in sandbox (add `-Dognl.security.manager` to JVM arguments) +and validate the expressions before evaluation.
+In the following examples, the code accepts an OGNL expression from the user and evaluates it. +
+ +In the first example, the user provided OGNL expression is parsed and evaluated.
+ +The second example validates the expression and evaluates it inside the sandbox.
+ +