Advanced
Template Injection
Exploit the Jinja2 template engine to execute system commands and find the flag in `/root/flag.txt`.
- Solves
- 67
- Average time
- 12m 3s
- Record
- 3s
- First blood
- Claimed
Median 5.8 min
Solve-time distribution
66 solves. Median 5.8 minutes. Under 5m: 30 solves. 5 to 15m: 26 solves. 15 to 30m: 5 solves. 30 to 60m: 1 solves. 60m+: 4 solves.
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
Launch the machine
You get your own fresh copy of this lab with connection details. It runs for up to one hour.
Find the flag
Work toward the objective above. The flag looks like
FLAG{...}and is different for every session.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| # | Hacker | Time |
|---|---|---|
| 1 | 3s | |
| 2 | 13s | |
| 3 | User 0755 | 47s |
| 4 | User 7904 | 1m 4s |
| 5 | 1m 4s | |
| 6 | 1m 6s | |
| 7 | 1m 17s | |
| 8 | 1m 19s | |
| 9 | 1m 22s | |
| 10 | 1m 26s |
More Advanced labs
See all
Token Forger
Forge authentication tokensWEB+SSH Root Access
Escalate from user to root via SUIDSSH Internal Access
Access internal services through SSRFWEB+SSH Cookie Heist
Steal an admin session with reflected XSS and breach the dashboardWEB Hash Cracker
Crack weak password hashes from an exposed databaseWEB+SSH Blind Injection
Extract data through boolean-based blind SQL injectionWEB+SSH
Forge authentication tokensWEB+SSH Root Access
Escalate from user to root via SUIDSSH Internal Access
Access internal services through SSRFWEB+SSH Cookie Heist
Steal an admin session with reflected XSS and breach the dashboardWEB Hash Cracker
Crack weak password hashes from an exposed databaseWEB+SSH Blind Injection
Extract data through boolean-based blind SQL injectionWEB+SSH