mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
Fix bad models, add tests for those
This commit is contained in:
@@ -86,6 +86,10 @@ public class VelocitySSTI {
|
||||
StringWriter w = new StringWriter();
|
||||
VelocityEngine engine = null;
|
||||
engine.mergeTemplate("testtemplate.vm", "UTF-8", context, w); // $hasTemplateInjection
|
||||
AbstractContext ctx = null;
|
||||
ctx.put("key", code);
|
||||
engine.evaluate(ctx, null, null, null); // $hasTemplateInjection
|
||||
engine.evaluate(null, null, null, code); // $hasTemplateInjection
|
||||
}
|
||||
|
||||
@GetMapping(value = "bad6")
|
||||
|
||||
Reference in New Issue
Block a user