menu
techminis

A naukri.com initiative

google-web-stories
source image

Medium

1d

read

153

img
dot

Image Credit: Medium

Selfdestruct Vulnerabilities in Solidity: Bypassing ETH Caps to Lock Contracts

  • The article discusses a selfdestruct vulnerability in Solidity where contracts can be locked by bypassing ETH caps.
  • A Capture The Flag challenge involved finding a way to prevent VIP users from withdrawing tokens when the contract balance is low.
  • The selfdestruct function in Solidity allows for the deletion of a contract and transferring remaining Ether, even without a receive() function defined.
  • An example exploit using selfdestruct to lock a contract and prevent VIP withdrawals is demonstrated, highlighting the importance of internal verification processes.

Read Full Article

like

9 Likes

For uninterrupted reading, download the app