Lab: Server-side template injection in an unknown language with a documented exploit
This lab is vulnerable to server-side template injection. To solve the lab, identify the template engine and find a documented exploit online that you can use to execute arbitrary code, then delete the morale.txt
file from Carlos's home directory.
Steps
Open Burp suite and visit the target website
Send the /?message= URI to the Repeater
Get the information of Template being used
We can see the template engine is used is Handlebars (Node.js)
Let's do a code execution
We got a command exection
Let's delete the morale.txt file
PreviousLab: Server-side template injection using documentationNextLab: Server-side template injection with information disclosure via user-supplied objects
Last updated