sherlock-audit / 2023-02-hats-judging

2 stars 0 forks source link

0xAgro - Known Bug In Compiler Used #121

Closed sherlock-admin closed 1 year ago

sherlock-admin commented 1 year ago

0xAgro

medium

Known Bug In Compiler Used

Summary

All contracts in scope use a compiler version of >=0.8.13. There is a known bug that is present in Solidity 0.8.13 as well as 0.8.14.

Vulnerability Detail

See here.

Impact

See here.

Code Snippet

https://github.com/Hats-Protocol/hats-protocol/blob/fafcfdf046c0369c1f9e077eacd94a328f9d7af0/src/Hats.sol#L17

Tool used

Manual Review

Recommendation

Upgrade all contracts past Solidity 0.8.14.