🚀 Join our AI Wargame at Black Hat Asia and our Workshop + Wargame at NDC Sydney .

DoS with Block Gas Limit

Each block has an upper bound on the amount of gas that can be spent, determining the extent of computational operations. If the gas spent exceeds this limit, the transaction will fail. This leads to Denial of Service.

SWC-128 - DoS With Block Gas Limit

Remediation

  • Let users withdraw funds rather than push funds to them automatically.

Learn more about this vulnerability on SecDim Learn: Stuck Ponzi

Metadata

  • Severity: medium
  • Slug: dos-with-block-gas-limit

CWEs

  • 400: Uncontrolled Resource Consumption

Available Labs

Open Solidity labs in SecDim Play for this vulnerability.

Try it yourself

Find, Hack and Fix Your First Vulnerability

Reading about security bugs is one thing — fixing one is how the skill sticks. Play a free challenge from the wargame, no setup required.