This repository is your guide to identifying and mitigating the most common vulnerabilities in Solidity smart contracts.
- Reentrancy Attack
- Incorrect Calculation 🔢
- Weak Access Control 🔒
- Overflow and Underflow ⚖️
- tx.origin Authentication Vulnerability
- Insecure Randomness 🎲
- Downcasting Error 📉
- Clone this repository or download the ZIP file.
- Once downloaded, run
npm installto install all the necessary packages.
To get your own Testnet head over to BuildBear:
- Create a Testnet on BuildBear.
- Copy the RPC from the Dashboard and add to the
hardhat.config.jsfile.
You can find the contracts deployment and vulnerabilities Proof of Concept scripts in the scripts folder.
- To run the scripts, use the following command:
npx hardhat run scripts/fileName - For example:
npx hardhat run scripts/overflowandUnderflow.js
- Most Common Vulnerabilities In Solidity: In-Depth Part 1
- Most Common Vulnerabilities In Solidity: In-Depth Part 2
- Must Have Smart Contract Auditing Tools for Auditors and Developers
- Learn How to Perform a Sandwich Attack
- Integer Downcasting Vulnerability: Demonstration and Effective Fix
- Recreating Kubz NFT Hack and understanding what went wrong
- Re-constructing the GDS Hack || Things that you should actually know to code safe protocols
- Euler Finance’s 196 Million Flash Loan Exploit | Learn how to re-do the hack
Join the telegram support chat 💬