Security of Smart Contracts 4: Denial Of Service

DoS attack in blockchain context:

  1. Unexpected Revert
  2. Block Gas Limit
  3. Block Stuffing

Example for the attack of Block Gas Limit:

When attacker calls bid() thousands of times, refundAll() function may hit the gas limit of the block which will lead to the stuck of funds in the contract forever because of Block Gas Limit.

Solution:

We should let users manually withdraw their funds.

Subscribe to Hicss
Receive the latest updates directly to your inbox.
Verification
This entry has been permanently stored onchain and signed by its creator.