Malicious External Contracts | Hacking Solidity (v0.8)

preview_player
Показать описание
When you cast an address to a specific contract type inside of solidity, solidity doesn't check that the contract in question is indeed the expected type! This means someone can come in and place malicious external contracts to represent benign contracts under special circumstances. It's mission critical that you understand this vulnerability and ensure your code adequately hedges against it.

Alma Labs is a full-stack web3 development shop with worldwide talent, specializing in dapp, mobile app, and protocol development.

🔔 Like, comment, and subscribe for more web3, Solidity, and blockchain security tutorials!
Рекомендации по теме