# PDA seeds omit canonical bump

Seeds arrays used for PDA signing or lookup that lack the stored canonical bump, breaking invoke_signed

_Area: Smart contract access control and control flow. Seen in 3 disclosed reports; latest 2024-08-26. Updated 2026-11-22._

## How it works
A program-derived address (PDA) is derived from a seed list plus a bump byte. The runtime finds the canonical bump by searching downward from 255 until the derived address falls off the curve. Signing a CPI with `invoke_signed` requires the exact same seed list, including that bump, so the runtime can re-derive the address and treat it as a signer. If a `seeds()` helper returns only the phrase and omits the bump, the derived address differs from the real account, the signer check fails, and every CPI path that depends on it reverts. The assumption that breaks: that "the seeds I store" and "the seeds I sign with" are the same list. They are not unless the bump is carried through [E2](https://bugbountylibrary.com/r/sherlock%3A2024-08-woofi-solana-deployment%3AH-1.md).

## Where it shows up
- Anchor `seeds()` helpers that build a `Vec<&[u8]>` from constants and account keys but never push the stored bump [E2](https://bugbountylibrary.com/r/sherlock%3A2024-08-woofi-solana-deployment%3AH-1.md).
- `invoke_signed` call sites whose seed array is assembled inline rather than from the same helper used at account creation.
- Accounts initialized with `bump` stored in the account struct but not read back at signing time.
- Any signing path (fee claim, withdraw, transfer-out) that silently reverts while read-only paths still work.

## How to review
Find every `invoke_signed` and every PDA lookup. For each, confirm the seed list is byte-identical to the one used when the account was created, and that the canonical bump is included as the final seed. The invariant: `find_program_address(seeds_without_bump, program_id).1 == stored_bump`, and the signing seed array equals `seeds_without_bump ++ [stored_bump]`. Check that the helper returning seeds is the single source used by both creation and signing. If a bump is stored, verify it is actually appended before signing, not just persisted.

## How finders spotted it
- Read the `seeds()` helper against Solana's PDA signing requirements and noticed the bump was absent from the returned array [E2](https://bugbountylibrary.com/r/sherlock%3A2024-08-woofi-solana-deployment%3AH-1.md).
- Habit: for each signing helper, ask "where is the bump?" and trace it to the `invoke_signed` call [E2](https://bugbountylibrary.com/r/sherlock%3A2024-08-woofi-solana-deployment%3AH-1.md).

## Variants seen
- RebateManager and RebateInfo both omit the bump, so claim_rebate_fee and withdraw cannot sign, locking tokens [E2](https://bugbountylibrary.com/r/sherlock%3A2024-08-woofi-solana-deployment%3AH-1.md).

## Impact and severity
CPI signing fails, so fee claims and withdrawals revert and funds stay locked in the program [E2](https://bugbountylibrary.com/r/sherlock%3A2024-08-woofi-solana-deployment%3AH-1.md). Severity is high where the blocked path is the only way to move user or protocol funds out; read paths still succeeding makes the failure easy to miss until a withdrawal is attempted.

## Evidence
- E1: https://bugbountylibrary.com/r/sherlock%3A2024-03-axis-finance%3AH-1.md
- E2: https://bugbountylibrary.com/r/sherlock%3A2024-08-woofi-solana-deployment%3AH-1.md
- E3: https://bugbountylibrary.com/r/sherlock%3A2023-09-Gitcoin%3AM-5.md
