Skip to content

This is an example of a *vulnerable* Solidity app to timelock user tokens for a fixed amount of time (1 week in this example), the corresponding attacker contract using arithmetic underflow and how to mitigate this.

Notifications You must be signed in to change notification settings

GusGusGusGus/arithmetic-overflow-attack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TimeLocker vulnerable contract, exploit and mitigation

Solidity contract to timelock user tokens for a fixed amount of time The TimeLockVulnerable.sol contract has a known vulnerability. The Attacker.sol contract shows how TimeLockVulnerable.sol would be exploited. The TimeLockCorrected.sol contract has the solution for this issue.

About

This is an example of a *vulnerable* Solidity app to timelock user tokens for a fixed amount of time (1 week in this example), the corresponding attacker contract using arithmetic underflow and how to mitigate this.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published