Skip to content

Commit

Permalink
Update "Why is this bad?"
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasavola authored Aug 12, 2024
1 parent fd356e9 commit 32cf8f0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This issue of DoS through unexpected revert arises when a smart contract does no

## Why it is bad?

Arrays have a maximum size according to the storage cell. If the array is full, the push will revert. This issue can be exploited by an attacker to perform a DoS attack on the network and can result in lost funds, poor user experience, and even harm the network's overall security.
In Soroban smart contracts, a Denial of Service (DoS) issue through unexpected reverts can occur if the contract does not properly manage storage limits or handle errors when the storage capacity is exceeded. If a user adds an excessive number of entries, it could trigger a revert, causing subsequent transactions by other users to fail unexpectedly, leading to a potential Denial of Service.


## Issue example
Expand Down

0 comments on commit 32cf8f0

Please sign in to comment.