Advanced

Template Injection

Exploit the Jinja2 template engine to execute system commands and find the flag in `/root/flag.txt`.

WEB+SSH Injection +175 XP
Solves
67
Average time
12m 3s
Record
3s
First blood
Claimed
Solve times 66 solves

Median 5.8 min

Rating

Not enough ratings yet. It shows up from three.

Sign in and solve this lab to rate it.

Write-ups 0

Sign in and solve this lab to read write-ups. They would spoil it for anyone who has not.

How it works three steps
  1. Launch the machine

    You get your own fresh copy of this lab with connection details. It runs for up to one hour.

  2. Find the flag

    Work toward the objective above. The flag looks like FLAG{...} and is different for every session.

  3. Submit it

    Submit the flag to earn 175 XP, plus a bonus when you are fast and for a first blood. Your time runs from your first start until you submit, and may land on the fastest solves list.

Stuck? get unstuck without spoilers
  • nudgeA free push in the right direction. Use it as often as you like.
  • hintA stronger hint after 5 minutes of lab time. Costs 8% of the lab's XP.
  • walkthroughThe full approach after 20 minutes of lab time. Costs 20% of the lab's XP.

First blood

solved it in 4m 49s

Fastest solves

Top 10
Ten fastest solves of Template Injection
#HackerTime
1whoamilabtester3s
2khan13s
3User 075547s
4User 79041m 4s
5NCS ZAYREX1m 4s
6Kris1m 6s
7harpy1m 17s
8cvy0r1m 19s
9iamunknown771m 22s
10%1m 26s

More Advanced labs

See all