How the attack works
Consider a guest book that stores any message:- An attacker stores a message, for which the contract - not the visitor - pays the storage cost
- An attacker repeats, storing thousands of inexpensive messages
- More of the contract’s NEAR becomes locked for storage
- The contract eventually lacks liquid balance for other operations