▹ Watch me Live on Twitch every Monday and Thursday! - https://twitch.tv/garr_7
Portswigger Web Security Academy Server-Side Template Injection (SSTI) Lab: Server-side template injection with information disclosure via user-supplied objects - https://portswigger.net/web-security/server-side-template-injection/exploiting/lab-server-side-template-injection-with-information-disclosure-via-user-supplied-objects
Additional References for Further Exploration:
Cobalt SSTI Resource - https://www.cobalt.io/blog/a-pentesters-guide-to-server-side-template-injection-ssti
Django Settings Breakdown - https://docs.djangoproject.com/en/4.0/ref/settings
My SSTI Explanation Vid - https://youtu.be/QLqHMMcBXuQ
HackTricks SSTI Cheat Sheet - https://book.hacktricks.xyz/pentesting-web/ssti-server-side-template-injection
Awesome In-Depth SSTI Breakdown by PwnFunction - https://youtu.be/SN6EVIG4c-0
------------------------------------------------------------------------------
In this series, we take a look at Web Security Academy's Server-Side Template Injection (SSTI) labs and break them down. The goal is to break down the concepts to not only get to the solution, but talk about methodology and the mental steps we take in order to discover these vulnerabilities in the wild.
Timestamps:
0:00 Intro
0:14 Lab description review and application mapping
0:48 Enumerating templating engine via "Edit Template" functionality
1:23 Trying a payload from Hacktricks to discover templating engine
1:59 Using {% debug %} payload
2:43 Using Django docs to enumerate what we can access via "Settings" object
3:30 Final payload
3:51 Recap
4:38 Outro
------------------------------------------------------------------------------
Music:
“Lovely City”
Produced by Calum Bowen
https://youtu.be/ZGdyS2FDm2U
“Ghosted”
Produced by Bankrupt Beats
https://youtu.be/tl9KWN7UyG4
“Ikebaby”
Produced by Robotprins
https://youtu.be/APAekwchpkE