Server Side Template Injection
Web App Pentesting - Server Side Template Injection
What is it?
Before we understand the attack, first lets understand what template engine is ( eh? colloquially lets understand how web template system would work? and lets not re-write what's already written, here is a link to Wikipedia - https://en.wikipedia.org/wiki/Web_template_system ). So web template system consists of three main components.
1. Template Engine
2. Content Resource (DB etc)
3. Template Resource
Lets select Django Template Engine (TE), it has two tasks to perform
1. Parsing the template engine language
2. And rendering it accordingly on a page
Django (again that's the main TE) we are talking about here.
Django has two TEs
1. Django Templates
2. Jinja2
...to be continued.
Comments