Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

🛡️ Solidity Vulnerabilities and Prevention Practices:

This repository is your guide to identifying and mitigating the most common vulnerabilities in Solidity smart contracts.

🚨 Here are the vulnerabilities covered in this repository:

  • Reentrancy Attack
  • Incorrect Calculation 🔢
  • Weak Access Control 🔒
  • Overflow and Underflow ⚖️
  • tx.origin Authentication Vulnerability
  • Insecure Randomness 🎲
  • Downcasting Error 📉

Getting Started

To start using this repository, follow these steps:

  1. Clone this repository or download the ZIP file.
  2. Once downloaded, run npm install to install all the necessary packages.

Setting up Testnet

To get your own Testnet head over to BuildBear:

  1. Create a Testnet on BuildBear.
  2. Copy the RPC from the Dashboard and add to the hardhat.config.js file.

Contracts Deployment and Vulnerabilities Proof of Concept (POC)

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

🔭 Learning Resources

💬 Support Chat

Join the telegram support chat 💬