Writeup · SAF Pre-Qualifiers 2026

Last Tram Home

osintunknownsolvedFlag: safctf{REDACTED}

Overview

The challenge provides a ZIP archive at hxxp://54[.]72[.]82[.]22:8490/downloads/field-notes.zip containing several files that must be correlated to identify the correct venue and event, then produce a collection receipt.

Prerequisites / Setup

  • wget/curl, unzip, sha256sum
  • Archive contents: civic-directory.json, programme.json, studio-post.txt, submission.txt, tram.csv

Recon

Step 1 — Download and extract the evidence

Goal: Obtain the puzzle files.

wget "hxxp://54[.]72[.]82[.]22:8490/downloads/field-notes.zip"
unzip field-notes.zip

Archive contents: civic-directory.json, programme.json, studio-post.txt, submission.txt, tram.csv.

Step 2 — Identify the final tram stop

Goal: Find the venue reference from studio-post.txt and tram.csv.

studio-post.txt:

The last frame was taken at stop 18, three hours after UTC. The wall clock read 21:30 on 18 April 2026.

Tram stop: 18

Look up stop 18 in tram.csv:

stop,venue
...
18,b59c881fc2
...

Venue reference: b59c881fc2

Enumeration

Step 3 — Find the corresponding event

Goal: Search programme.json for the venue reference.

Search programme.json for b59c881fc2. The matching entry:

{
  "event": "2011bf1eeb4b",
  "venue": "b59c881fc2",
  "time_utc": "2026-04-18T18:30:00Z",
  "artist": "act-8"
}

Values:

  • Venue reference: b59c881fc2
  • Event reference: 2011bf1eeb4b
  • UTC date: 2026-04-18

The timestamp also confirms the clue from studio-post.txt:

18:30 UTC + 3 hours = 21:30

which matches the wall clock time (21:30 on 18 April 2026).

Step 4 — Determine the required hash format

Goal: Read the receipt formula from submission.txt.

submission.txt:

Collection receipt format: SHA256(venue_ref|event_ref|UTC_date), lowercase hex.

String to hash:

b59c881fc2|2011bf1eeb4b|2026-04-18
printf '%s' 'b59c881fc2|2011bf1eeb4b|2026-04-18' | sha256sum
57aa623e8a9afd3082a959b18371e03ea717d6ad03f7e68948162fc507ee914d

Exploitation

Step 5 — Submit the receipt

Goal: Submit the SHA-256 receipt through the collection desk on the challenge website.

The server responds:

{
  "message": "safctf{REDACTED}",
  "ok": true
}

Flag

safctf{REDACTED}

Returned after submitting receipt 57aa623e8a9afd3082a959b18371e03ea717d6ad03f7e68948162fc507ee914d.

Mitigations

  • Apply proper input validation and sanitization for all user-supplied data.
  • Use parameterized queries or prepared statements for database operations.
  • Implement proper authentication and authorization checks.
  • Follow the principle of least privilege for all application components.

Lessons / Takeaways

  • Chain independent clues (tram stop → venue → event → date) rather than guessing.
  • Confirm intermediate results against the hint text (18:30 UTC + 3h = 21:30 local).
  • Read the required output format (submission.txt) before computing the answer.

Techniques

  • OSINT

References

n/a — all sources were the challenge-provided field-notes archive.