root@thehacksparrow:~/writeups$ SYSTEM ONLINE
root@sparrow:~/writeups$ cat templated.md
// writeups

Templated

23 Oct 2020 · 5 min read · user access
Templated — HTB challenge
An "under construction" page served by Flask/Jinja2. The route name is reflected in the 404 error, enabling SSTI ({{7*7}}=49), RCE and flag disclosure.

Challenge overview

FieldValue
PlatformHack The Box · Challenge
CategoryWeb
DifficultyEasy
StateRetired

Attack map

[Web] Flask/Jinja2
      │
      ▼
[404] route reflected in error
      │
      ▼
[SSTI {{7*7}}=49] confirmed
      │
      ▼
[RCE] __globals__['os'].popen
      │
      ▼
[FLAG]
🔒 Free account required

This is USER ACCESS content — free to unlock, no payment. The rest of the write-up (and everything else at this level) opens up once you're signed in.

Create a free account