# Data requests queue can be DoS'ed

Permissionless, near-free data requests on Seda chain can be spammed to bloat the tally queue and starve legitimate requests.

- Payout: Audit contest
- Severity: medium
- Program: Seda Protocol
- Found by: zxriptor
- Disclosed: 2024-12-20
- Write-up quality: 6/10
- Original: https://github.com/sherlock-audit/2024-12-seda-protocol-judging/issues/53
- Library page: https://bugbountylibrary.com/r/sherlock%3A2024-12-seda-protocol%3AM-2
- Tags: area:web3 domain:web3 impact:dos kind:contest platform:sherlock sev:medium tech:go tech:rust technique:source-review vuln:dos

**Target:** seda-chain data_requests contract and x/tally endblock processing
**Root cause:** Posting a data request only requires covering gas computed from caller-supplied exec_gas_limit, tally_gas_limit and gas_price, so an attacker can set them near-zero and pay ~1 aseda per request. Expired requests are still moved to Tallying and processed, but only MaxTalliesPerBlock per block.
**Steps:**
1. Call post_request with `exec_gas_limit`, `tally_gas_limit`, `gas_price` set to minimal values so required funds ≈ 1 aseda
2. Repeat thousands of times to enqueue dummy requests that executors ignore
3. Wait for timeout height so `expire_data_requests` moves them to Tallying
4. Observe x/tally endblock only processes `params.MaxTalliesPerBlock` per block, all consumed by attacker requests
**How found:** Code review of post_request fee check noticing gas parameters are caller-controlled, combined with expire_data_requests moving expired requests to Tallying and the per-block MaxTalliesPerBlock cap in x/tally endblock.
**Exploitation:** Attacker floods the queue with cheap requests that expire and get tallied, filling the per-block tally page limit and delaying legitimate requests; paid gas is refunded after processing.
**Insight:** When a fee is derived from user-supplied gas parameters, check whether those params can be minimized to near-zero; then check whether expired/ignored items still consume a bounded per-block processing budget.

