SafuDot

January 28, 2022 ยท View on GitHub

Vulnerable smart contracts with SPoF (Single Point of Failure) aka hack a centralized system. Have fun playing! :)

Workshop for Polkadot Hungary meetup

  1. We will use the Moonbeam alpha testnet, contract on blockchain explorer:

    https://moonbase-blockscout.testnet.moonbeam.network/tx/0x0a911f42052049c9b939fc86baccafa8f83c5e93c33ac10510f46effeb170c52

2 Install MetaMask: https://metamask.io/

3 Add Moonbase Alpha to MetaMask

Moonbase Alpha RPC: https://moonbeam-alpha.api.onfinality.io/public

Moonbase Alpha Chain ID: 1287

Block explorer: https://moonbase-blockscout.testnet.moonbeam.network/

4. Open https://remix.ethereum.org/ and use MetaMask web3 injection.

  1. Load the smart contract for interaction.

  2. Hack the smart contract through SPoF, take over it.

  3. Q&A, enjoy the time left :)