Server Side Template Injection (SSTI)
Last updated
Last updated
Twig has a variable _self
, which, in simple terms, makes a few of the internal APIs public. This _self
object has been documented, so we don't need to brute force any variable names,
we can use the getFilter
function as it allows execution of a user-defined function via the following process:
Register a function as a filter callback via registerUndefinedFilterCallback
Invoke _self.env.getFilter()
to execute the function we have just registered
to get the environment variables we can use
we can use TQLMAP from the below link