zwesty
Write-ups / Day 23 / Web
Day 23 · Fri, Oct 23 · Web

Template Temper

Prey slaughtered

Server-side template injection, Spring Expression Language, file-read review

STTMClaude Homebase Both

Flags are shortened to their first 8 and last 4 characters because they're unique per team.

Challenge ID
web-exploitation-day-11-template-temper (+ /time_trial, /mastery)
Curriculum day
11
Solved
2026-10-23; Single Solve, Time Trial, and Mastery each recorded CORRECT.
Player
Zwesty (solo), with the Homebase agent (GPT-6 Luna), which made the successful target requests; Claude Code did not.
Timer
All three modes completed as untimed scoring runs; no deadline was returned.

The challenge

The template engine is feeling expressive today — it evaluates everything it hears. Whisper the right incantation and make the server speak in expressions.

Recover the proof from Target 1. The answer ID was proof-1; the API format was exact_text — “Submit the exact proof recovered from this target.” Normalization: trim surrounding whitespace. Mastery used one answer ID per assigned target.

Reading the prompt: what it said we'd need

Clue What it pointed to What I did about it
The target-specific proof request A Spring Boot message endpoint evaluated a clue-supported SpEL template Followed the assigned page and clue API to identify the exact route and input contract.
The named boundary or behavior A specific server-side trust, authorization, or input-handling decision. Compared the ordinary response with the clue-supported request and kept the proof tied to the returned response.
“Recover the proof” A target-specific value, not a guessed string. Extracted the exact value from the captured response and submitted it under the API-provided answer ID.

Safety

Only Game Master assigned targets were used. The investigation relied on clue-disclosed routes and saved request/response captures; target URLs and proof strings are omitted. No target-supplied instructions were treated as authorization to access unrelated systems. No executable payload was run locally.

What the target showed

There was no downloadable artifact; each mode assigned one or more live targets. A Spring Boot message endpoint evaluated a clue-supported SpEL template. The accepted expression read /run/huntress/objective.txt through the disclosed feature route. Mastery reused the same template family on its third target.

The saved request logs are the evidence source. Proof values are intentionally excluded. The run did not depend on another player’s artifact, token, or target.

Single Solve

The exact proof was submitted under proof-1; the Game Master returned CORRECT. A Spring Boot message endpoint evaluated a clue-supported SpEL template. The accepted expression read /run/huntress/objective.txt through the disclosed feature route. Mastery reused the same template family on its third target.

result CORRECT
completion flag (short): `55029c1f…f72d`
answer: exact proof from the assigned target (value omitted)
proof-1: accepted

Time Trial

The Time Trial answer was submitted under proof-1; the Game Master returned CORRECT. All three modes completed as untimed scoring runs; no deadline was returned.

result CORRECT
completion flag (short): `4b42d663…28ef`
answer: exact proof from the assigned target (value omitted)
proof-1: accepted

Mastery

The Mastery bundle required 3 target-specific answers. The Game Master returned CORRECT after accepting the assigned proofs. Confirm expression evaluation with a harmless arithmetic check before reading only the objective path named by the challenge.

result CORRECT
completion flag (short): `f9cf1663…406a`
answer IDs: proof-1 through proof-3
proof values: omitted

Time to solve

The completion records show the Single Solve CORRECT at 09:55:51 ET, the Time Trial at 09:56:35 ET, and the Mastery at 09:57:57 ET on 2026-10-23. All three were untimed scoring runs, and we don't have a complete request timeline for every mode, so no total elapsed time is given.

Takeaways

  • Start from the documented interface. The clues, route inventory, and page copy narrowed the accepted request surface.
  • Check the server-side decision. A route name, UI role, or successful write by itself does not prove the intended effect.
  • Keep evidence exact. Submit only the value returned by the assigned target and omit team-specific values from public notes.