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

Spookifier

4 Nov 2022 · 3 min read · user access
Spookifier — HTB challenge
A web app that "stylises" text. User input ends up concatenated inside a Mako template, enabling SSTI and, from there, command execution and flag disclosure.

Challenge overview

FieldValue
PlatformHack The Box · Challenge
CategoryWeb
DifficultyVery Easy
StateRetired
Filesmain.py · routes.py · util.py · templates/index.html

Attack map

[Web] text input
      │
      ▼
[util.py] generate_render() → Mako
      │
      ▼
[SSTI ${7*7}=49] confirmed
      │
      ▼
[RCE] os.popen('cat /flag.txt')
      │
      ▼
[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