# Approval treated as broader consent

An allowance or approve read as consent to mint, swap, or spend beyond the granted scope

_Area: Smart contract access control and control flow. Seen in 2 disclosed reports; latest 2025-03-19. Updated 2026-11-17._

## How it works
An approval is a grant of one specific power: "this spender may move my tokens." The weakness is when code reads that grant as consent to do something else — mint new debt in the owner's name, take an NFT without paying, or call arbitrary functions on the owner's behalf. The assumption that breaks is that an allowance is scoped to the action the owner had in mind. In practice an allowance is a raw capability, and every code path that can spend it inherits the full power, whether or not that path was designed to settle a trade or respect a custom consent rule.

## Where it shows up
- A marketplace or escrow that grants approval on bid, then has more than one transfer path (transfer, send, burn) [E1](https://bugbountylibrary.com/r/c4%3A2024-10-coded-estate%3AH-08.md)
- A protocol with a purpose-built consent flag (e.g. receiveAllowance) that still reads plain ERC20 allowance somewhere [E2](https://bugbountylibrary.com/r/cantina%3Asilo%3A3.2.8.md)
- `mint()` or debt-issuing functions that check `allowance[owner][spender]` instead of a dedicated receive-consent [E2](https://bugbountylibrary.com/r/cantina%3Asilo%3A3.2.8.md)
- Accounts (including fee/treasury accounts) that approve tokens to a router or swapper allowing arbitrary calls [E3](https://bugbountylibrary.com/r/dhl%3A20250813-coinbase.md)
- Any `transferFrom` reachable through a generic call-forwarding contract [E3](https://bugbountylibrary.com/r/dhl%3A20250813-coinbase.md)

## How to review
Enumerate every path that can spend a given approval and confirm each one enforces the same settlement or consent logic. The invariant: an approval granted for purpose A must not be spendable by a path that skips A's checks. For each `approve`/`allowance` site, list all callers of `transferFrom`/`_transfer`/`mint` that can reach it. If a custom consent mechanism exists, grep for every read of the standard allowance and confirm none bypass it [E2](https://bugbountylibrary.com/r/cantina%3Asilo%3A3.2.8.md). For operational approvals, confirm the spender cannot be induced to make arbitrary calls [E3](https://bugbountylibrary.com/r/dhl%3A20250813-coinbase.md).

## How finders spotted it
- Compared the two transfer paths side by side: transfer_nft had payment settlement, send_nft only called _transfer_nft, and the auto_approve grant was not scoped to transfer_nft [E1](https://bugbountylibrary.com/r/c4%3A2024-10-coded-estate%3AH-08.md)
- Read ShareDebtToken.mint() and noticed it used standard allowance rather than the protocol's receiveAllowance, contradicting the stated design intent [E2](https://bugbountylibrary.com/r/cantina%3Asilo%3A3.2.8.md)
- Noticed the fee account's token approvals to a 0x swapper, likely via on-chain monitoring or block explorer inspection [E3](https://bugbountylibrary.com/r/dhl%3A20250813-coinbase.md)

## Variants seen
- Marketplace approval spent via a non-settling transfer path, then bid cancelled for refund [E1](https://bugbountylibrary.com/r/c4%3A2024-10-coded-estate%3AH-08.md)
- Lending mint() honoring plain approve, letting a spender borrow in the owner's name [E2](https://bugbountylibrary.com/r/cantina%3Asilo%3A3.2.8.md)
- Operational fee-account approval to an arbitrary-call swapper drained via transferFrom [E3](https://bugbountylibrary.com/r/dhl%3A20250813-coinbase.md)

## Impact and severity
E1 lets an attacker take the seller's NFT without paying and recover the bid [E1](https://bugbountylibrary.com/r/c4%3A2024-10-coded-estate%3AH-08.md). E2 sticks the owner with debt they never consented to [E2](https://bugbountylibrary.com/r/cantina%3Asilo%3A3.2.8.md). E3 drained ~300k USD from a fee account [E3](https://bugbountylibrary.com/r/dhl%3A20250813-coinbase.md). Severity rises with the value the approval can move and whether the spender contract permits arbitrary calls, which turns a narrow approval into a general drain [E3](https://bugbountylibrary.com/r/dhl%3A20250813-coinbase.md).

## Evidence
- E1: https://bugbountylibrary.com/r/c4%3A2024-10-coded-estate%3AH-08.md
- E2: https://bugbountylibrary.com/r/cantina%3Asilo%3A3.2.8.md
- E3: https://bugbountylibrary.com/r/dhl%3A20250813-coinbase.md
