One Request Away No. 10 Streak 0 Solved 0 of 27

A template that is not a template

Medium Path Traversal 3 Aug 2026 Solved by 3

Scenario

Tarnbeck is bookkeeping software. Its export page renders documents from named templates.

A saved June export failed while opening its template. This is the request the page sent.

One change to this request triggers the vulnerability. The challenge is to use your security intuition to work out what to change. Find the value the server shouldn’t trust, change it, and send it. The response tells you whether you were right.

Request Tap any part of it
// HTTP/1.1
Host:
Content-Type:
Cookie: session=
template=&period=&format=
No change — send it as it stands
Response

  • 01 What the server believed

    “A template name from the export page can only refer to a file in the templates directory.”

  • 02 The fix

    Accept a template ID and map it to a fixed server-side allowlist. If dynamic paths are required, resolve the path before opening it and verify it remains inside the templates directory. Return a generic error to the client, run the renderer with minimal file access, and add tests for traversal and encoded traversal values.

  • 03 Where else to look for this

    Check template loaders, downloads, translations, themes, export profiles, log viewers, and image endpoints. Look for request values joined to a server directory before a file is opened.

The series

Every drill 27

One Request Away is a daily series of challenges. They’re like code review, but for HTTP requests: in each one you’re one request away from triggering a vulnerability, and your goal is to identify what you need to change.

Do not stop here

A drill is one request.
A lab is the whole app.

Uphack labs are believable products with one realistic flaw buried in an ordinary feature. Same instinct, nothing highlighted — you get a running application and have to find it yourself.

Browse the labs
Registration is open Closes today

Turn the instinct into practice.

Drills are free and stay that way. The labs put the same reasoning against a whole application, and members get all of them. Registration is open until Saturday 19 September.

Create your account

Already a member? Sign in