Hunt prep
Before you test ENS
What 29 disclosed reports say about ENS: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing
Not written yet for this program. The numbers below are up to date.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Business logic lesson | 11 | 0 | – | – | $0 |
| Access control lesson | 8 | 0 | – | – | $0 |
| Smart contracts lesson | 7 | 0 | – | – | $0 |
| Crypto lesson | 2 | 0 | – | – | $0 |
| DoS lesson | 1 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
HexUtils.hexStringToBytes32() and HexUtils.hexToAddress() may return incorrect results
The function should revert if the input length is odd, and should either revert or document the behaviour for lengths not equal to 32 (or 20).
Disclosed
-
Missing recursive calls handling in OffchainDNSResolver CCIP-aware contract
The resolveCallback function should be updated to catch OffchainLookup errors from nested calls and validate the sender field, as shown in the EIP-3668 example.
Disclosed
-
Offchain name resolution would fail despite the located DNS resolver being fully functional
Use the OpenZeppelin ERC165Checker library, which checks ERC165 support before querying the interface, so the call does not revert.
Disclosed
-
Invalid addresses will be accepted as resolvers, possibly bricking assets
Add a check that the upper 96 bits are zero before accepting the address.
Disclosed
-
NameWrapper: Cannot prevent transfer while upgrade even with CANNOT_TRANSFER fuse regardless of the upgraded NameWrapper’s implementation
The fix was to derive the current owner from getData and check if the new owner differs, then enforce the CANNOT_TRANSFER fuse.
Disclosed
-
PARENT_CANNOT_CONTROL and CANNOT_CREATE_SUBDOMAIN fuses can be bypassed
The fix ensures that fuses can only be burned if the node is wrapped, i.e., its ENS registry owner is the NameWrapper contract.
Disclosed
-
NameWrapper: expired names behave unwrapped
The check was fixed so that if either the registry owner or the wrapped owner is zero, the CANNOT_CREATE_SUBDOMAIN fuse is enforced.
Disclosed
-
NameWrapper: Wrapped to Unregistered to ignore PARENT_CANNOT_CONTROL
The code was fixed to check the PARENT_CANNOT_CONTROL fuse for all unexpired nodes, not only when the registry owner is non-zero.
Disclosed
-
During the deprecation period where both .eth registrar controllers are active, a crafted hack can be launched and cause the same malicious consequences of [H-01] even if [H-01] is properly fixed
The text says a patch was proposed and the warden commented that it looks valid, but does not describe the patch details; a naive fix would be to check whether an ETH2LD is actually wrapped on every operation, though that is not gas-friendly.
Disclosed
-
It is possible to create fake ERC1155 NameWrapper token for subdomain, which is not owned by NameWrapper
The report recommends adding nonReentrant modifiers from OpenZeppelin's ReentrancyGuard, or checking that the token's owner and fuses are unchanged after the transfer callback before setting new fuses.
Disclosed
-
ERC1155Fuse : _transfer does not revert when sent to the old owner
The _transfer function should revert when the recipient already owns the token instead of returning early.
Disclosed
-
The expiry of the parent node can be smaller than the one of a child node, violating the guarantee policy
The expiry should not be zeroed when burning a node if the node holds any subnode, or alternatively auto-burn CANNOT_UNWRAP or force the parent to have CANNOT_UNWRAP burnt when setting child expiries.
Disclosed
-
Wrong Equals Logic
The fix is to change the comparison from >= to == in the equals function.
Disclosed
-
BytesUtils : compare will not revert when the offset and len exceeds the bytes lengths
The compare function should check that offset and len are within the length of self, and similarly for other.
Disclosed
-
The preimage DB (i.e., NameWrapper.names ) can be maliciously manipulated/corrupted
When wrapping a node, check whether NameWrapper.names[node] is empty directly and update the preimage database if it is empty.
Disclosed