DL·SYS
Contact ↗

CSCTF 2026 · Web · 540 pts

Cutover.

A `__proto__` string pollutes Array.prototype through a deserializer's own revive step, and a JSON exponent literal slips past an integer cap.

Prototype pollutionJSON grammar differential900pt web
EventCSCTF 2026, Operation Dawn (online jeopardy)
CategoryWeb
Points540
StatusSolved during the event
TargetAssigned live container

TL;DR. The manifest intake uses flatted to deserialize attacker JSON. A manifest field value of the literal string "__proto__" makes flatted's own reviver dereference Array.prototype, and the service's own merge step then copies arbitrary hint keys onto it — so Array.prototype.RECALL = true satisfies a supervisor-only grant check for every session. A second bug (accepting the risk-gateway value as a JSON exponent literal) bypasses the numeric cap that was supposed to block the dangerous value.

Challenge

Eleven batches are queued for the MCSA settlement rail; one (the Glass Tide batch) needs a SUPERVISOR-only RECALL accepted before the cutover window closes. The receipt carries the flag.

First look

Source for the settlement engine is shipped for audit. The manifest intake deserializes attacker JSON with flatted@3.4.1. flatted's resolver does tmp = input[value] with an attacker-controlled string key; supplying the nested string value "__proto__" makes that lookup resolve through the Array.prototype.__proto__ accessor, so tmp becomes Array.prototype itself — and flatted assigns it straight into manifest.basis.

Solution — privilege escalation

intake.normalise() then does merge(basis, ROUTING_DEFAULTS) followed by merge(basis, hints), where merge is a shallow target[key] = source[key] copy over arbitrary hint keys. Since basis is now Array.prototype, this pollutes it: Array.prototype.RECALL = true. Tier grants in this app are stored as plain arrays, so grants["RECALL"] now resolves true for every OPERATOR session's grant array — GET /session still shows a clean grant list, because the pollution lives on the prototype, not the instance.

POST /api/v1/manifests
[{"basis":"__proto__","hints":{"RECALL":true}}]

normalise() runs before validation, so this fires even though the manifest itself is otherwise incomplete.

Solution — finding and unlocking the batch

GET /state/journal and /state/batches identify the hostile batch by its numbers: floor 23.5M, position 47.8M, projected 11.7M imply a 36.1M drain, matching MRN-514B5A (instruction sum 36,100,000 vs. a declared 32.5M). The risk gateway rejects a RECALL value of 36100000 outright with exposure.cap_exceeded (cap 27.2M). A schema hint — "number_grammar RFC 8259 section 6, on_undetermined defer_downstream" — points at the fix: sending the value as the JSON exponent literal 3.61e7 instead of the plain integer. The gateway's own cap check defers on that form, but Node's JSON.parse still parses it to the full integer 36100000 downstream.

Final receipt unlock is sha256("cutover|MRN-514B5A|36100000"), submitted with the exponent-literal value, which returns the recall receipt whose authorization field is the flag.

Flag

FlagCSCTF{Ir2oEJoXUhbdRwJf6qWKCVFD}

What I took from it