Hintru Tip ENES ← All labs

MesaNet Portal — Rail Broadcasts

EN hard CTF challenge Stored XSSXSS botCSRFconfused deputyinnerHTML sinkheadless browsersession hijackAPI abuse
Original

The MesaNet Portal hosts a "Rail Broadcasts" application accessible through a JSON gateway API. A low-privilege operator account can interact with several broadcast endpoints, but a confidential note owned by a privileged automated user sits just out of reach. The challenge requires chaining the broadcast creation pipeline with the automated oversight system to escalate access without ever touching the privileged session directly.

0/8
solved
Step 1 Step 2 Step 3 Step 4 Step 5 Step 6 Step 7 Step 8
enumeration

Step 3 · Understand the oversight bot

Objective: Determine what the `/api/rail/review` endpoint does, which user triggers it, and how that user interacts with the broadcast viewer.

Context: You now know there is a note you can't read and an endpoint called `/api/rail/review` that you haven't tested yet. Send a review request and observe the response carefully — it describes an 'Automated Oversight System'. Think about what that system does and whose session it uses.

Progressive hints

Only reveal the ones you need. Claude tracks how many you used to calibrate the feedback.

Hint 1 — directional nudge

Send a POST to `/api/rail/review` via the gateway with `data: {"view": "current"}`. Read the response message. Then look at what URL pattern the bot would visit based on that `view` parameter.

Hint 2 — technique / vuln class

The response confirms that a headless browser bot queues up to visit `/apps/rail?view=<value>`. This bot runs with its own privileged session (user `sysbot`, user id `4`). Whatever page it renders, it does so as `sysbot` — the same user who owns note 6.

Hint 3 — near solution

The bot opens `/apps/rail?view=display` (or `view=current`). The page JS then calls `fetch('/api/rail/' + view)`, gets `{html: ...}`, and writes `data.html` directly into `document.getElementById('broadcast-content').innerHTML`. If you control what's in `data.html`, you control what runs in the bot's browser.

Ask the tutor

Chat with a spoiler-safe tutor for this step. It uses only this lab spec and gives the smallest useful nudge first.

Tell the tutor what you tried, where you got stuck, or paste the response/error you are seeing.

Your attempt

Spotted something to improve?

Polish the wording, sharpen a hint, add missing context, fix a payload — your version stays separate from the original and other learners can choose it.

⚠ Report this lab

Enjoying Hintru? Buy me a coffee ☕ ☕