r/Hacking_Tutorials • • 20m ago

Question How do you approach learning different template engines for SSTI testing?

Hi guys,

I'm new to web application pentesting, coming from a network engineering background.

I've learned the basics of HTML, CSS, JS, SQL, PHP, API pentesting, and completed some PortSwigger labs.

Currently, I'm learning SSTI, but I'm confused about the different template engines (Jinja2, Twig, FreeMarker, etc.).

It's not practical to learn every engine in depth. When testing for SSTI, how do you approach unfamiliar template engines and craft appropriate payloads?

Do you study their documentation, memorize payloads, or follow some other approach?

Would appreciate advice from experienced pentesters. Thanks!

1 Upvotes

1 comment sorted by

1

u/Juzdeed 10m ago

Some hacking websites have great graph, I think hacktricks has one, where it shows what payloads to test and determine what template engine is being used. After that to can just search for specific template engine payloads