$ cat writeup.md…
$ cat writeup.md…
sunshinectf2026
Task: retro-futuristic GraphQL storefront where the target listing costs 1,000,000 credits but accounts start with only 500. Solution: enabled introspection reveals a hidden diagnostics mutation that leaks a master vendor key with no auth, which unlocks an internal 100%-off promo code that zeroes the price and settles the order.
$ cat /etc/rate-limit
Rate limit reached (20 reads/hour per IP). Showing preview only — full content returns at the next hour roll-over.
TOMORROW-MART — the retro-futuristic marketplace. New members receive 500 FutureBank starter credits. Think you can afford the Founders' Vault Deed (Lot #4042)?
English summary: A GraphQL-backed e-commerce storefront. New users get 500 starter credits. The goal is to purchase Lot #4042 ("Founders' Vault Deed"), priced at 1,000,000 credits — far beyond the starter balance. A successful placeOrder on that listing returns the flag.
The frontend (/static/app.js) shows all data flows through a single GraphQL endpoint POST /graphql, with an Authorization: Bearer <token> header. The token and cart live in localStorage.
Visible operations from the pages:
/account: register(username, password) and login(username, password) → { success message token account { handle } }/checkout: query { listings { id title priceCredits condition seller } } and mutation placeOrder(listingId: ID!, promoCode: String) { success message listingId pricePaid flag }The placeOrder mutation exposes a flag field, so the whole challenge reduces to making that mutation succeed on listing 4042.
Introspection was left enabled in production. A standard introspection query reveals operations not referenced anywhere in the frontend:
promoCodes(vendorKey: String!) — a promo lookup gated behind a vendor key argument.vendorTerminalSync(terminalId: ID) -> VendorDiagnostics, where VendorDiagnostics = { terminalId, status, firmware, vendorKey, note }.The vendorTerminalSync mutation is an internal diagnostics endpoint. Its terminalId argument is optional, and calling it with no arguments still returns diagnostics — including a privileged vendorKey (format VND-MASTER-<hex>). The note field explicitly reads: "Remember to disable this endpoint before public launch." This is a dev/diagnostics operation reachable by any client — classic broken function-level access control and excessive data exposure.
...