Il miglior esempio di catturare l'hack piuttosto che monitorare il vettore d'attacco. Osserva attentamente.
jacob Φ
jacob Φ31 lug 2025
It's time to share a quick video showcasing how a poorly written smart contract with obvious bugs can be protected against exploits using assertions. The bug allows anyone to drain the smart contract by calling withdraw with exactly 69 ETH as input. The assertion has a variety of checks in place, making sure that only accounts that have made deposits can withdraw amounts corresponding to their initial deposits. It even covers reentry and intra-tx manipulations. This is all live on our demo network. Reach out if you want to try it out! So yeah, it's pretty cool!
281