Skip to content
Chain Defenders

Research · Web3 Security · Medium

Revealed breeding outcomes could still be abandoned

Players could inspect a revealed breeding outcome, wait for the recovery timeout, and discard an unfavorable attempt while restoring breeding capacity.

9 November 2026

What went wrong

validate_reclaimable_attempt accepted attempts in both AwaitingRandomness and RandomnessReady states. In the latter state, the VRF result was already stored on-chain and could be used to derive the breeding outcome.

The recovery path still allowed the user to abandon that attempt after the timeout. It restored the parents' breeding counts and cooldowns even though the outcome had already become observable.

Why it mattered

A player could distinguish favorable outcomes from unfavorable ones before deciding whether to complete an attempt. Abandoning a bad result restored the breeding capacity that the attempt had consumed.

This did not require forging the VRF output. The problem was the choice available after a valid result was revealed: recovery allowed a player to discard an unfavorable outcome while recovering resources needed for another attempt. The timeout delayed that choice but did not remove it.

The report includes a test showing that a RandomnessReady attempt passed the reclaimability check and that the recovery helpers restored parent state.

The fix

The report recommends preventing user abandonment once randomness is ready. If a revealed attempt needs a recovery path, that path should require an objectively unresolvable outcome and should not restore the breeding count or cooldown after disclosure.

That distinction preserves a route to recover genuinely stuck operations without giving users a way to reject results they simply dislike.

Takeaway

Randomness security includes the state transitions after disclosure. Review cancellation and recovery paths for any opportunity to inspect an outcome, reject it, and regain the resources spent on the attempt.

Finding status: Fixed.

Shipping something similar? We review the code before it holds money.

Request an audit