Crypto / Evergreen
A valid contract can become impractical to execute
A denial-of-service weakness can make an intended operation unavailable or too expensive by creating conditions the contract cannot process within practical execution limits.
Availability depends on bounded execution paths as well as correct permissions and arithmetic.
The distinction that matters
A denial-of-service weakness can make an intended operation unavailable or too expensive by creating conditions the contract cannot process within practical execution limits. Smart-contract security combines software correctness, authorization, and economic assumptions. A program can follow its written code perfectly while producing an outcome its designers did not intend. Attackers can choose inputs, arrange transactions, interact through other contracts, and exploit the precise order in which state changes and external calls occur.
How the mechanism works
Common patterns include unbounded loops, dependence on uncooperative recipients, or state growth that increases work without a reliable bound. Public code makes behavior inspectable, but inspection requires attention to all reachable paths and dependencies. Security reviews, formal methods, tests, and monitoring provide different kinds of evidence. None is a universal certificate covering every later upgrade, configuration change, or interaction with external systems. A review's scope, version, and unresolved findings matter, and a deployed contract can differ from the reviewed artifact.
A worked situation
Consider this hypothetical situation: A hypothetical contract distributes payments by looping over every participant, and the participant list grows until the required gas exceeds feasible transaction limits. The code still expresses the intended distribution, but no ordinary transaction can complete the full operation under the available resource budget.
Where interpretation can fail
An application can therefore fail through excessive required work without an attacker stealing a key or forging a signature. Inspect how execution cost grows with stored data and whether users can complete independent actions without processing an entire global list. Availability depends on bounded execution paths as well as correct permissions and arithmetic.
The wider technical implication
A contract can also depend on a recipient accepting a transfer or callback. If one uncooperative recipient causes a global distribution to revert, that recipient can block others without controlling their keys. Pull-based designs can isolate some failures by letting each recipient claim independently, though they create their own operational requirements. The useful security question is whether one participant can force unrelated participants to process its failure before progressing. Availability review should therefore inspect both growth in required work and dependencies on external cooperation, rather than focusing exclusively on theft or unauthorized state changes.
A global perspective
A technical exploit, contractual breach, and regulatory violation are different classifications. Remedies and reporting duties depend on jurisdiction and the actual facts.
Sources & further reading
Ethereum.org — Smart contract security ↗OpenZeppelin Contracts — Access control ↗Sources checked Oct 27, 2026. Educational examples. Historical observations are attributed to their sources. No affiliation with cited organizations.
Make the idea stick.
Mark complete when you are ready. Reaching the end alone does not mark a lesson complete.
What assumption in this guide would change the result in a different situation? Revisit the example and explain that change in your own words.
Explore crypto →