Egis-Security / CTF_Challenge

Repository containing CTF challenges from nmirchev8, deth and bOgO.
14 stars 8 forks source link

b0g0_ctf - openzeppelin-5.0.1 doesn't have `Counters.sol` #10

Open sammy-tm opened 1 month ago

sammy-tm commented 1 month ago

Description

Counters.sol doesn't exist in OZ contracts version 5.0.1, hence the contract won't compile.

Impact

Contract won't compile

Solution

Use a version before 5.0

References

https://github.com/OpenZeppelin/openzeppelin-contracts/issues/4233

Error: not found @openzeppelin-5.0.1/contracts/utils/Counters.sol
BogoCvetkov commented 1 month ago

20 USD additional bonus. That's not the bug though (fixed as well). Keep digging!

BogoCvetkov commented 3 weeks ago

Since this issue will only prevent the contract from compiling it should be considered Low/Informational, because the contract won't get deployed and no actual exploits would come out of it.