# Attackers can flood solvers with thousands of requests and prevent fee payouts

Malicious requester contracts revert on refund transfers, blocking solver fee payouts in postResult while requests time out and funds are withdrawn.

- Payout: Audit contest
- Severity: medium
- Program: Seda Protocol
- Found by: 000000
- Disclosed: 2024-12-20
- Write-up quality: 6/10
- Original: https://github.com/sherlock-audit/2024-12-seda-protocol-judging/issues/217
- Library page: https://bugbountylibrary.com/r/sherlock%3A2024-12-seda-protocol%3AM-8
- Tags: area:web3 domain:web3 impact:dos impact:funds-loss kind:contest platform:sherlock sev:medium tech:evm tech:solidity technique:source-review vuln:business-logic vuln:dos

**Target:** SedaCoreV1 EVM core contract postResult fee distribution
**Root cause:** Push-model fee distribution transfers native tokens to the requester during postResult; a requester contract that reverts on receive blocks the whole fee payout, and gasLimit set above gasUsed guarantees a nonzero refundAmount.
**Steps:**
1. Deploy malicious requester contract with `receive()` that reverts when `acceptEther` is false
2. Submit request with `requestFee` high and `gasLimit` slightly above actual gas so `refundAmount = requestFee - (gasUsed*requestFee/gasLimit) > 0`
3. Solver processes request and calls `postResult`; refund `_transferFee(requestDetails.requestor, refundAmount)` reverts
4. Toggle `acceptEther` off before result posting to force the revert
5. After `timeoutPeriod`, call `withdrawTimedOutRequest` to reclaim funds
6. Repeat across many contracts/requests to congest solvers
**How found:** Code review of postResult fee split: noticed refundAmount is nonzero when gasLimit exceeds gasUsed, and refund transfer to requester is a push transfer that can revert, blocking payout.
**Exploitation:** Attacker floods solvers with attractive-fee requests from revert-on-receive contracts, disables Ether acceptance before postResult so fee transfers revert, then withdraws funds after timeout, paying only gas while solvers do unpaid work.
**Escalation:** Scale to 100 contracts x 100 requests = 10,000 requests to overload solvers and Seda chain.
**Insight:** In push-payment fee models, any external transfer to a user-controlled address is a griefing vector; check whether refund/change amounts can be forced nonzero via gasLimit slack and whether a reverting receiver blocks other payouts.

