# Attacker can make claimed staking incentives irredeemable on Gnosis Chain

Attacker claims staking incentives with an insufficient AMB gasLimitMessage, causing the L2 message to fail out-of-gas and the incentives to become irredeemable without governance recovery.

- Payout: Audit contest
- Severity: medium
- Program: Olas
- Found by: EV\_om
- Disclosed: 2024-08-06
- Write-up quality: 6/10
- Original: https://github.com/code-423n4/2024-05-olas-findings/issues/33
- Library page: https://bugbountylibrary.com/r/c4%3A2024-05-olas%3AM-10
- Tags: area:web3 domain:web3 impact:dos impact:funds-loss kind:contest platform:code4rena sev:medium tech:evm technique:source-review vuln:business-logic vuln:dos

**Target:** GnosisDepositProcessorL1 cross-chain staking incentive dispenser (AMB bridge)
**Root cause:** User-supplied gasLimitMessage is passed to the Gnosis AMB without a lower bound beyond the AMB's 100 minimum, so a too-low value causes the L2 message execution to run out of gas. The AMB has no native replay, so the bridged incentive data is lost.
**Steps:**
1. OLAS tokens are withheld in GnosisTargetDispenserL2 and synced to L1 Dispenser via syncWithheldtokens()
2. Attacker calls claimStakingIncentives() on Dispenser for a Gnosis nominee whose accumulated rewards are less than the withheld amount
3. Attacker supplies an insufficient `gasLimitMessage` in the `bridgePayload`
4. Message is sent via AMB but fails to execute on L2 due to out of gas
5. Claimed incentives are stuck/irredeemable on L2, requiring governance processDataMaintenance() to recover
**How found:** Code review of the L1->L2 bridging path: noticed gasLimitMessage is caller-controlled and only bounded below by the AMB's internal 100 minimum, and that the AMB offers no replay mechanism for failed messages.
**Exploitation:** Attacker repeatedly calls claimStakingIncentives() with a minimal gasLimitMessage for various nominees, each time causing the L2 message to fail out-of-gas and stranding the claimed incentives; recovery requires a governance proposal per incident.
**Escalation:** Repeatable across many targets, each requiring separate governance intervention, degrading protocol functioning.
**Insight:** When a bridge/messaging layer lacks message replay, any caller-controlled gas parameter on the send path is a griefing vector: check whether a failed delivery permanently strands state and whether recovery needs privileged intervention.

