Sherlock
Hats
Every publicly disclosed report for Hats and what kind of bugs they were.
- disclosed reports
- 26
- most reported class
- Business logic
- bug classes found
- 5
- first disclosure
- 2023
Disclosed reports
Newest first. Only what Hats chose to make public.
-
Other module can add owners to safe that push us above maxSigners, bricking safe
DoS High Audit finding
-
[Medium][Outdated State] `_removeSigner` incorrectly updates `signerCount` and safe `threshold`
Business logic Medium Audit finding +2 collaborators
-
middle level admins can steal child trees because function unlinkTopHatFromTree() is callable by them
Access control Medium Audit finding
-
Usage of HSG for existing safe can brick safe
Business logic Medium Audit finding
-
Hats can be overwritten
Business logic Medium Audit finding +1 collaborator
-
Safe threshold can be set above target threshold, causing transactions to revert
Business logic Medium Audit finding +5 collaborators
-
Swap Signer fails if final owner is invalid due to off by one error in loop
Business logic Medium Audit finding +1 collaborator
-
HatsSignerGateBase: valid signer threshold can be bypassed because HSG checks signatures differently from Safe which allows exploitation
Access control High Audit finding +1 collaborator
-
Safe can be bricked because threshold is updated with validSignerCount instead of newThreshold
Business logic High Audit finding +8 collaborators
-
Signers can bypass checks to add new modules to a safe by abusing reentrancy
Smart contracts High Audit finding +1 collaborator
-
If another module adds a module, the safe will be bricked
Business logic High Audit finding +2 collaborators
-
HatsSignerGate + MultiHatsSignerGate: more than maxSignatures can be claimed which leads to DOS in reconcileSignerCount
Business logic High Audit finding +2 collaborators
-
Owners can be swapped even though they still wear their signer hats
Access control Medium Audit finding +1 collaborator
-
attacker can perform malicious transactions in the safe because reentrancy is not implemented correctly in the checkTransaction() and checkAfterExecution() function in HSG
Smart contracts Medium Audit finding +1 collaborator
-
targetThreshold can be set below minThreshold, violating important invariant
Business logic Medium Audit finding +4 collaborators
-
Unlinked tophat retains linkedTreeRequests, can be rugged
Access control High Audit finding +3 collaborators
-
Unbound recursive function call can use unlimited gas and break hats operation
DoS Medium Audit finding +5 collaborators
-
The Hats contract needs to override the ERC1155.balanceOfBatch function
Business logic Medium Audit finding +3 collaborators
-
Signers can bypass checks and change threshold within a transaction
Access control High Audit finding +1 collaborator
-
Can get around hats per level constraints using phantom levels
Business logic Medium Audit finding +1 collaborator
-
If signer gate is deployed to safe with more than 5 existing modules, safe will be bricked
Business logic Medium Audit finding +3 collaborators
-
If a hat is owned by address(0), phony signatures will be accepted by the safe
Crypto Medium Audit finding +1 collaborator
-
Hats.uri function can be DOSed by providing large details or imageURI string or cause large gas fees
DoS Medium Audit finding
-
Changing hat toggle address can lead to unexpected changes in status
Business logic Medium Audit finding
-
Signers can brick safe by adding unlimited additional signers while avoiding checks
Business logic High Audit finding +2 collaborators
-
Owners of linkedin tophats cannot have eligibility revoked
Access control Medium Audit finding