Hunting Server Side Template Injection

Hunt server-side template injection where untrusted input becomes part of a template that the engine compiles and evaluates, rather than data passed into a fixed precompiled template. Covers input concatenated into a template string, a user-chosen template name or path, and admin or content features that render user-authored templates, across engines like Jinja, Twig, Freemarker, Velocity, ERB, and Handlebars. The impact runs from expression evaluation and data disclosure up to remote code execution when the engine exposes object internals or a weak sandbox. Use when a template string or name is built from input, or a feature lets users supply template markup. The untrusted value reaching compilation is the source, the template engine eval is the sink, and expression evaluation escalating to disclosure or code execution is the bug.

UnboundCompute ed9e5b4 9.3 KB Updated

File contents

UnboundCompute/security-agent-skills/tree/main/skills/hunting-server-side-template-injection commit ed9e5b499a

Frequently asked questions

npx skillmds@latest add unboundcompute/hunting-server-side-template-injection