Hunt prep
Before you test Anvil
What 17 disclosed reports say about Anvil: 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 | 5 | 0 | – | – | $0 |
| DoS lesson | 4 | 0 | – | – | $0 |
| Race condition lesson | 4 | 0 | – | – | $0 |
| Smart contracts lesson | 3 | 0 | – | – | $0 |
| Access control 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.
-
Anyone can cancel anyone's LOC
The condition should be changed so that the beneficiary authorisation check runs unless the caller is the beneficiary, rather than only when the LOC is unexpired.
Disclosed
-
Time Based Collateral Pool Users can release more than their due share of the pool, drawing from the due share of other users
The report recommends timestamping exit balances and reset nonces and checking whether the reset happened before or after the user's pending epoch was processed, treating it as case a when the reset came first.
Disclosed
-
DoS for the user's calling stake and stakeReleasableTokensFrom function
The modifyCollateralizableTokenAllowanceWithSignature function should check that msg.sender is an approved collateralizable contract.
Disclosed
-
Users can withdraw funds at incorrect fee rate
The _requireCollateralizableAndDecreaseApprovedAmount function should perform the collateralizableContracts check before the early return for self-address.
Disclosed
-
Signature Front-Running Vulnerability in CollateralVault
The fix should follow the same approach used for the depositAndStake function, as recommended by the reporter.
Disclosed
-
Typehash Discrepancy in CollateralizableTokenAllowanceAdjustment
The implementation contract's type hash should be updated to match the interface's definition, including the chainId and approver fields.
Disclosed
-
Incorrect nonce value emitted in TimeBasedCollateralPool::_resetPool event
The event should emit the nonce without adding 1, so it reflects the actual stored value.
Disclosed
-
Collateralizable Contracts May Retain Status Unconditionally
The contract should be changed to not copy the full return data in the catch clause, for example by using a low-level call with a bounded return-data copy.
Disclosed