We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a29ccd6 commit 1ad7bd9Copy full SHA for 1ad7bd9
java/ql/src/Security/CWE/CWE-094/ScriptEngine.java
@@ -0,0 +1,4 @@
1
+// Bad: arbitrary code execution
2
+ScriptEngineManager scriptEngineManager = new ScriptEngineManager();
3
+ScriptEngine scriptEngine = scriptEngineManager.getEngineByExtension("js");
4
+Object result = scriptEngine.eval(code);
0 commit comments