kadenzipfel / smart-contract-vulnerabilities

A collection of smart contract vulnerabilities along with prevention methods
https://kadenzipfel.github.io/smart-contract-vulnerabilities/
1.63k stars 218 forks source link

over/underflow vulnerability updated #69

Closed 0xSandyy closed 3 weeks ago

0xSandyy commented 4 weeks ago

Related Issue

Checklist

Describe the changes you've made:

I updated the overflow and underflow vulnerability by adding more ways in which overflow/underflow can occur after solidity >=0.8.

Type of change

Select the appropriate checkbox:

Additional Information

I provided just enough information about different concepts like typecasting, inline assembly, etc without going into detail as this report is mostly about exploiting overflow and underflow. But, there are resources in the source section if readers want to learn more.