# Unvalidated order fields lock assets

Order/consideration fields appended or mutated without validation, reverting transfers and locking escrow

_Area: Smart contract access control and control flow. Seen in 2 disclosed reports; latest 2024-06-25. Updated 2026-11-17._

## How it works
An order-matching or settlement path trusts fields it never validated. A status flag is set, or a price/consideration value is consumed, before the guard that decides whether the residual order is persisted or whether the value is in range. When the guard later fails or the value is out of domain, the state is already half-written: an order record exists with no backing order, or a settlement helper reverts on a value the caller was allowed to produce. The asset sits in escrow with no valid path out.

## Where it shows up
- Status flags (e.g. `PartiallyFilled`) set before the min-size / min-price check that gates persisting the residual order [E1](https://bugbountylibrary.com/r/c4%3A2024-03-dittoeth%3AH-04.md)
- Order records created without a `shortOrderId` or equivalent link to a real order [E1](https://bugbountylibrary.com/r/c4%3A2024-03-dittoeth%3AH-04.md)
- Order-hash derivation that ignores consideration items beyond `totalOriginalConsiderationItems`, so appended tips are unsigned [E2](https://bugbountylibrary.com/r/c4%3A2024-01-renft%3AH-01.md)
- Zones receiving original and appended consideration items in one indistinguishable array [E2](https://bugbountylibrary.com/r/c4%3A2024-01-renft%3AH-01.md)
- Helpers that revert above a `MAX_PRICE`-style bound, called with values derived from a looser bound (e.g. `MAX_INFLATED_PRICE` = 50x) [E3](https://bugbountylibrary.com/r/sherlock%3A2023-09-ajna%3AM-5.md)
- Exit/liquidation/stop paths that require a field the creation path did not guarantee [E1](https://bugbountylibrary.com/r/c4%3A2024-03-dittoeth%3AH-04.md)[E2](https://bugbountylibrary.com/r/c4%3A2024-01-renft%3AH-01.md)

## How to review
For each state mutation, ask: is every field the downstream exit, liquidation or refund path needs already guaranteed at this point? The invariant: an order record that exists must be fully linked and within all size/price bounds, and every value that reaches a settlement helper must lie inside that helper's accepted domain. Check ordering: guards that decide persistence must run before the status flag is written [E1](https://bugbountylibrary.com/r/c4%3A2024-03-dittoeth%3AH-04.md). Check that signed payloads commit to every field that later flows into escrow or refund logic; unsigned appended items must be separable from signed ones [E2](https://bugbountylibrary.com/r/c4%3A2024-01-renft%3AH-01.md). For each helper with an input bound, enumerate every caller and confirm the caller's input domain is a subset of the helper's [E3](https://bugbountylibrary.com/r/sherlock%3A2023-09-ajna%3AM-5.md).

## How finders spotted it
- Read `sellMatchAlgo` and noticed the status was set by `matchIncomingSell` before the `minAskEth` check gating `addSellOrder`; then traced exit and liquidation paths that need a valid `shortOrderId` [E1](https://bugbountylibrary.com/r/c4%3A2024-03-dittoeth%3AH-04.md)
- Read Seaport tipping docs and the note that zones must enforce consideration allocation; traced hash derivation to `totalOriginalConsiderationItems` and saw `ZoneParameters` merges tips with original items indistinguishably [E2](https://bugbountylibrary.com/r/c4%3A2024-01-renft%3AH-01.md)
- Read `_settleAuction`'s call to `_indexOf`, saw it reverts above `MAX_PRICE`, then traced `referencePrice` up to 50x via `MAX_INFLATED_PRICE` [E3](https://bugbountylibrary.com/r/sherlock%3A2023-09-ajna%3AM-5.md)

## Variants seen
- Orphan order record from a status set before a size guard [E1](https://bugbountylibrary.com/r/c4%3A2024-03-dittoeth%3AH-04.md)
- Unsigned appended consideration item weaponized to make the stop path always revert [E2](https://bugbountylibrary.com/r/c4%3A2024-01-renft%3AH-01.md)
- Out-of-domain price passed to a bounded helper, reverting settlement [E3](https://bugbountylibrary.com/r/sherlock%3A2023-09-ajna%3AM-5.md)

## Impact and severity
Assets locked in escrow with no exit or liquidation path [E1](https://bugbountylibrary.com/r/c4%3A2024-03-dittoeth%3AH-04.md)[E2](https://bugbountylibrary.com/r/c4%3A2024-01-renft%3AH-01.md); settlement temporarily blocked, harming the borrower [E3](https://bugbountylibrary.com/r/sherlock%3A2023-09-ajna%3AM-5.md). Impact rises when the orphan record also bypasses a minimum-size check or a secondary liquidation check [E1](https://bugbountylibrary.com/r/c4%3A2024-03-dittoeth%3AH-04.md), and when the reverting path is unavoidable (rounding prevents avoiding it) or the pair has extreme valuation [E3](https://bugbountylibrary.com/r/sherlock%3A2023-09-ajna%3AM-5.md).

## Evidence
- E1: https://bugbountylibrary.com/r/c4%3A2024-03-dittoeth%3AH-04.md
- E2: https://bugbountylibrary.com/r/c4%3A2024-01-renft%3AH-01.md
- E3: https://bugbountylibrary.com/r/sherlock%3A2023-09-ajna%3AM-5.md
