# Adversary can make honest parties unable to retrieve their assertion stakes if the required amount is decreased

When required assertion stake is lowered, an adversary stakes on a sibling branch and withdraws, leaving the rollup insolvent so honest stakers cannot retrieve their larger original stakes.

- Payout: Audit contest
- Severity: high
- Program: Arbitrum Foundation
- Found by: xuwinnie
- Disclosed: 2024-06-17
- Write-up quality: 8/10
- Original: https://github.com/code-423n4/2024-05-arbitrum-foundation-findings/issues/8
- Library page: https://bugbountylibrary.com/r/c4%3A2024-05-arbitrum-foundation%3AH-01
- Tags: area:web3 domain:web3 impact:dos impact:funds-loss kind:contest platform:code4rena sev:high tech:evm tech:solidity technique:source-review vuln:accounting-error vuln:business-logic

**Target:** RollupCore assertion staking contract (BOLD)
**Root cause:** Inactivity check allows withdrawal when last staked assertion merely has a child, and stake amount is fixed per-assertion from parent config, so a lower requiredStake after an admin update lets an adversary stake less on a sibling branch and exit while honest stakers' larger stakes remain locked.
**Steps:**
1. Chain A-B-C-D(latest confirmed)-E all staked at 1000 ETH; rollup holds 1000 ETH.
2. Admin lowers requiredStake to 700 ETH.
3. Alice creates invalid assertion F as child of D; since D predates update, F requires 1000 ETH, sent to loserStakeEscrow.
4. Alice has friend Bob create G as child of F staking only 700 ETH (new requiredStake).
5. Alice's last staked assertion F now has a child, so requireInactiveStaker passes; Alice withdraws her 1000 ETH.
6. Rollup now holds 700 ETH < honest validator's 1000 ETH stake; honest party cannot withdraw.
**How found:** Code reading of the stake-refund logic and requireInactiveStaker: noticed requiredStake is inherited from parent config so post-update children need less, and that having any child satisfies inactivity, enabling exit while honest stakes remain locked.
**Exploitation:** Adversary exploits the per-assertion requiredStake snapshot and the loose inactivity rule (last staked assertion merely having a child) to stake a smaller amount on a fresh child after an admin stake decrease, then withdraw the larger original stake, leaving the contract insolvent relative to honest stakers' locked stakes.
**Insight:** When a config parameter (requiredStake) is snapshotted per-assertion but the exit condition only checks for a child, an admin parameter decrease creates an arbitrage: stake the cheaper amount on a fresh child to satisfy inactivity and withdraw the larger legacy stake, checking contract solvency.

