Open NoahMarconi opened 5 years ago
This appears to be a mythril bug. Added report here as well: https://github.com/ConsenSys/mythril-classic/issues/956
@NoahMarconi I think we already have a fix for that in the develop branch, but that fix hasn't yet made it into a release (and therefore into the API). Will update you once it's fixed.
@NoahMarconi can you verify that bug is fixed?
Not in the released NPM package for truffle-security
.
$ truffle run verify
Compiling ./contracts/Beauty.sol...
Writing artifacts to ./build/mythx/contracts
BasicToken |*************************************************************************************************| 100% || Elapsed: 56.2s ✓ completed
BecToken |*************************************************************************************************| 100% || Elapsed: 59.4s ✓ completed
ERC20 |*************************************************************************************************| 100% || Elapsed: 60.4s ✓ completed
ERC20Basic |*************************************************************************************************| 100% || Elapsed: 61.6s ✓ completed
Ownable |*************************************************************************************************| 100% || Elapsed: 53.1s ✓ completed
Pausable |*************************************************************************************************| 100% || Elapsed: 72.3s ✓ completed
PausableToken |*************************************************************************************************| 100% || Elapsed: 72.2s ✓ completed
SafeMath |*************************************************************************************************| 100% || Elapsed: 65.7s ✓ completed
StandardToken |*************************************************************************************************| 100% || Elapsed: 70.7s ✓ completed
/Users/noahmarconi/gbcClass/testBT/contracts/Beauty.sol
165:2 warning The function visibility is not set SWC-100
290:4 warning The function visibility is not set SWC-100
295:4 warning The function visibility is not set SWC-100
✖ 3 problems (0 errors, 3 warnings)
As this is not directly a problem with truffle-security
itself, but with the api behind it, I have transferred the issue to the mythx-developer-support
repository.
As a test case I copied over this contract locally and ran
truffle run verify
: https://etherscan.io/address/0xc5d105e63711398af9bbff092d4b6769c82f793d#codeThis is the famous batchOverflow contract and the tool doesn't catch that there's an overflow vulnerability here.