VoltBay a divide-by-zero discount on a 100,000 CR core

web
flag RxR{24204e24-1ec7-477b-819d-13bcf72cd387}

VoltBay sells compute hardware. You start as a guest node with a 0.00 CR balance, and the challenge asks you to order and fulfill the "Sovereign Quantum Processing Core" - a restricted 500 MW part listed at 100,000 CR. The goal is clear from the start: get a six-figure item through a checkout that a zero-balance account can afford.

Two things in the storefront catch the eye immediately: a "Resonance Core Discount" line that sits at 0.00 CR for every normal configuration, and a telemetry badge advertising a ZERO_POINT resonance state I couldn't get to light up. That mismatch is the whole challenge.

Mapping the engine

output
GET  /api/catalog              GET  /api/promotions
POST /api/order/calculate      POST /api/order/checkout

calculate prices a rig without committing, and it returns more than the UI renders - a raw denominator field never surfaces in the storefront at all. That's the tell: the backend computes a ratio it doesn't fully expose.

Parts: cores (Synapse V1 80 MW/1200, Strata-200 200 MW/4500, Sovereign 500 MW/100000), coprocessors (Tensor-Flow 100 MW/800, Vector Warp 250 MW/1500), dampers (Flux Coil 50 MW/100, Harmonic Phase Damper 250 MW/150, Cryo-Entropy Bleed 120 MW/200), up to two dampers.

Pitfall

Resonance only computes when both a core and a coprocessor are mounted - a bare core always reads STANDARD. I spent a short dead end swapping dampers against a solo core wondering why nothing moved, before adding a coprocessor brought the numbers alive.

The bug: a divide-by-zero in the resonance ratio

output
primary_power - total_damping = denominator
denominator > 0  -> STANDARD,          synergy = coprocessor_power / denominator
denominator < 0  -> UNSTABLE_OVERLOAD, synergy floored to 0
denominator == 0 -> ZERO_POINT,        synergy reported as 99999.0

Insight

ZERO_POINT is the "superconduction" state the copy keeps promising, and it hands out a monster discount. The Sovereign core is 500 MW, so exactly 500 MW of damping zeroes the denominator - two Harmonic Phase Dampers (250 each) do it.

json
1{ "primary_id": "PROD_SOVEREIGN_KEY", "coprocessor_id": "PROD_VECTOR_COPROC",
2  "catalyst_ids": ["CATALYST_CRYPTO_DAMPER", "CATALYST_CRYPTO_DAMPER"] }

returns resonance_mode: ZERO_POINT, denominator: 0, synergy_multiplier: 99999.0, primary_discount: 101500.0 against a 101,800 CR subtotal - in ZERO_POINT, the discount wipes out the primary and the coprocessor entirely.

From "free core" to "exactly free"

The rebate list gates REBATE-CLEANSE (flat 350 CR off) on ZERO_POINT. Stacking it:

output
101800 (subtotal) - 101500 (core discount) - 350 (rebate) + 25 (fee) = -25
json
1{"error":"Negative total violation: Transaction balance cannot be negative"}

Insight

The engine wants the settlement to land on exactly zero, not below it - the residual after the discount (dampers + fee - rebate = 300 + 25 - 350 = -25) means I owe 25 CR back. A 25 CR Optical Microfiber Neural Patch - zero power, zero damping - covers it exactly:

output
101825 - 101500 - 350 + 25 = 0.00 CR
json
1{"flag":"RxR{24204e24-1ec7-477b-819d-13bcf72cd387}","order_id":"ORD-D7537685",
2 "resonance_mode":"ZERO_POINT","status":"FULFILLED","success":true,"total_settled":0.0}

solve.py reproduces the whole chain.

Note

The challenge description shipped the usual hidden decoy (RxR{R4lly_i_g0t_190_kdn4h}) aimed at scrapers - not the flag; the real one only came out of the checkout response.

Flag

output
RxR{24204e24-1ec7-477b-819d-13bcf72cd387}