Writeup · Cyberweek Africa 2026 - National CTF (Finals)

DeskNest

webmediumsolvedFlag: FLAG{REDACTED}

Overview

The challenge presents a ticketing application where tickets can be created through POST /api/tickets. The application explicitly supports HTML in ticket messages — the regular customer view displays messages as text, but agents review tickets in a real browser using the agent ticket page. This makes the ticket body a stored-XSS target.

The agent page also exposes useful internal functionality: GET /api/flag and POST /api/tickets/<id>/note. The normal user account receives a decoy response from /api/flag, while the agent browser has the privileged session needed to retrieve the real flag.

Prerequisites / Setup

export TARGET="<challenge URL or IP>"

curl is sufficient; no wordlist or credentials are required beyond registering a normal account.

Recon

Step 1 — Register an account and create a ticket

Goal: Confirm the ticket creation endpoint and that HTML in the ticket body is stored.

The regular customer view displays messages as text, but agents review tickets in a real browser.

Vulnerability Analysis