Hunt prep
Before you test The Wildcat Protocol
What 26 disclosed reports say about The Wildcat Protocol: 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 | 18 | 0 | – | – | $0 |
| Access control lesson | 5 | 0 | – | – | $0 |
| Smart contracts lesson | 2 | 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.
-
Role providers cannot be EOAs as stated in the documentation
The code should be fixed to use a low-level call and treat a failed call as a non-pull provider, allowing EOAs to be added.
Disclosed
-
Users are incentivized to not withdraw immediately after the market is closed
The project adopted the proposed fix of removing a filled expiry from pendingWithdrawalExpiry after a market closes and tracking a closedExpiry variable to avoid timestamp collisions, and it was fixed in a commit.
Disclosed
-
FixedTermLoanHooks allow Borrower to update Annual Interest before end of the “Fixed Term Period”
The function onSetAnnualInterestAndReserveRatioBips should revert if the fixed term end time is still in the future, as recommended in the report.
Disclosed
-
Role providers can bypass intended restrictions and lower expiry set by other providers
The fix is non-trivial and not specified in the text.
Disclosed
-
No lender is able to exit even after the market is closed
The hook should handle the market-close event and set the fixed-term end time to the current block timestamp if it has not yet elapsed; the project says this was fixed.
Disclosed
-
Inconsistency across multiple repaying functions causing lender to pay extra fees
The issue was resolved by a commit according to the project team.
Disclosed
-
FixedTermLoanHook looks at block.timestamp instead of expiry
The hook should check the expiry parameter instead of block.timestamp, though the sponsor decided to keep the current behaviour as a deliberate trade-off.
Disclosed
-
Calculation for lender withdrawals in _applyWithdrawalBatchPayment() should not round up
The calculation should round down when computing the asset amount allocated to a batch.
Disclosed
-
Protocol markets are incompatible with rebasing tokens
The report recommends blacklisting rebasing tokens in the protocol and documenting that markets are incompatible with them; the project acknowledged the issue but declined to keep a token list.
Disclosed
-
Blocked accounts keep earning interest contrary to the WhitePaper
The scaled balance should be normalised before being transferred to the escrow contract, so that it stops earning interest.
Disclosed
-
codehash check in factory contracts does not account for non-empty addresses
The check should use `code.length != 0` instead of comparing codehash to zero, and the fix was applied.
Disclosed
-
Borrower can drain all funds of a sanctioned lender
The order of parameters in createEscrow should be corrected so that account and borrower are passed in the right positions.
Disclosed
-
Borrower has no way to update maxTotalSupply of market or close market.
Borrower-only functions were added to the controller that forward calls to the market's setMaxTotalSupply and closeMarket, and the sponsor says it was mitigated.
Disclosed
-
Return values of transfer() / transferFrom() not checked and unsafe usage
The issue was fixed by using SafeERC20's safeTransfer and safeTransferFrom.
Disclosed
-
When a batch of withdrawals expires, that batch is often underpaid their owed interest
The state update should accrue interest up to the current block timestamp before processing an expired batch, rather than only up to the expiry.
Disclosed