Accessing Private Data | Hack Solidity (0.6)
Channel: Smart Contract Programmer
Date: 2020-07-11

Never store sensitive data in a private state variable. Private state variable are not accessible by other contracts, but since everything on the blockchain is public data, we are available to get that private data. Let's see how.

#Solidity #private #hack #EVM #storage-layout

Code: https://solidity-by-example.org/hacks/accessing-private-data/
Truffle project used in this video
https://github.com/t4sk/solidity-multi-sig-wallet

References
https://github.com/ethereumbook/ethereumbook/blob/develop/09smart-contracts-security.asciidoc
https://solidity-05.ethernaut.openzeppelin.com/

Remix IDE: http://remix.ethereum.org
Solidity: https://solidity.readthedocs.io

Follow on Twitter: @ProgrammerSmart https://twitter.com/ProgrammerSmart
Join me on Discord: https://discord.gg/Ny8sPaj
Website: https://smartcontractprogrammer.com