Skip to content

Code4rena

The Wildcat Protocol

Every publicly disclosed report for The Wildcat Protocol and what kind of bugs they were.

disclosed reports
26
most reported class
Business logic
bug classes found
3
first disclosure
2023
Find The Wildcat Protocol on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what The Wildcat Protocol chose to make public.

Business logic

Role providers cannot be EOAs as stated in the documentation

The documentation states that role providers can be externally owned accounts (EOAs), but the code only allows the initial deployer to be an EOA provider. Any other EOA added via addRoleProvider will cause a revert because the contract attempts to call isPullProvider on it, which an EOA cannot implement.

The Wildcat Protocol

Medium
Access control

AccessControlHooks onQueueWithdrawal() does not check if market is hooked which could lead to unexpected errors such as temporary DoS

The onQueueWithdrawal function in AccessControlHooks does not verify that the caller is a hooked market, allowing anyone to call it with arbitrary hookData. This could let an attacker front-run a lender's withdrawal transaction by submitting the same credential, causing the honest transaction to revert and potentially leading to a temporary denial of service for markets using short-lived credentials.

The Wildcat Protocol

Medium
Business logic

Users are incentivized to not withdraw immediately after the market is closed

Withdrawal batches pay all users in the batch at the same rate, so when a market closes with an outstanding expiry batch, new withdrawers join the old batch and are dragged down to its lower rate. This incentivises users to keep funds in the contract until the expiry timestamp to get a higher rate, rather than withdrawing immediately.

The Wildcat Protocol

Medium
Business logic

No lender is able to exit even after the market is closed

A market using a fixed-term hook lets the borrower close the market early, but the hook's fixed-term end time is not reset, so lenders cannot withdraw their funds until the original term expires. An attacker (the borrower) could lock all lender assets indefinitely by closing the market before the term ends.

The Wildcat Protocol

Medium
Business logic

FixedTermLoanHook looks at block.timestamp instead of expiry

The FixedTermLoanHook contract checks block.timestamp instead of the provided expiry when validating withdrawal requests, causing users to wait an extra withdrawalBatchDuration beyond the term end. This delays withdrawals but does not allow early withdrawal or loss of funds.

The Wildcat Protocol

Medium
Business logic

Blocked accounts keep earning interest contrary to the WhitePaper

Blocked accounts' scaled balances are moved to an escrow contract that still earns interest, contrary to the whitepaper's claim that interest does not accrue in escrow. An attacker could not directly exploit this, but it means sanctioned lenders continue to accrue interest while blocked.

The Wildcat Protocol

Medium
Business logic

When a batch of withdrawals expires, that batch is often underpaid their owed interest

When a withdrawal batch expires, the market updates the interest scale factor only up to the expiry timestamp rather than the current block timestamp, so lenders in that batch are paid interest only up to expiry. If the batch is then paid out, those lenders lose the interest accrued between expiry and the actual payment time.

The Wildcat Protocol

Medium
Access control

Borrower can drain all funds of a sanctioned lender

The _blockAccount function called createEscrow with the borrower and account arguments swapped, so the escrow recorded the wrong parties. A borrower could then release the escrow and withdraw the sanctioned lender's funds.

The Wildcat Protocol

High
Business logic

codehash check in factory contracts does not account for non-empty addresses

The codehash check used to detect existing contract code is insufficient because an address with a non-zero balance but no code returns keccak256("") instead of bytes32(0). An attacker can send 1 wei to a computed CREATE2 address, causing deployment functions to revert or skip escrow deployment, potentially locking borrowers out or making funds unrecoverable.

The Wildcat Protocol

High
Access control

Borrower has no way to update maxTotalSupply of market or close market.

The market contracts restricted setMaxTotalSupply and closeMarket to the controller, but the controller exposed no borrower-facing function to call them. As a result the borrower could not raise or lower a market's supply cap or shut down an unused market, and kept paying interest on idle capacity.

The Wildcat Protocol

High
Smart contracts

create2WithStoredInitCode() does not revert if contract deployment failed

The create2WithStoredInitCode function does not check whether the CREATE2 opcode returned address(0) when contract deployment fails, so deployMarket does not revert. As a result, users pay the origination fee for a failed deployment and the market address is registered, preventing future deployment with the same parameters.

The Wildcat Protocol

Medium
Business logic

Borrowers can escape from paying half of the penalty fees by closing the market, and those remaining penalty fees will be covered by the lender who withdraws last

When a borrower closes a delinquent market, the contract only charges the debt based on the current scale factor, ignoring remaining penalty fees that would accrue as the delinquency timer counts down. This lets the borrower avoid paying half of the penalty, and the last lender to withdraw bears the shortfall.

The Wildcat Protocol

High
Business logic

Removing markets from WildcatArchController gives lenders immunity from sanctions

When a market is removed from the WildcatArchController, the createEscrow function still checks only isRegisteredMarket, so calls from removed markets revert. This prevents nukeFromOrbit and executeWithdrawal from working for sanctioned lenders, letting them keep interacting with the market.

The Wildcat Protocol

Medium
Business logic

setAnnualInterestBips() can be abused to keep a market’s reserve ratio at 90%

A borrower can repeatedly call setAnnualInterestBips() to reduce the interest rate by a tiny amount, which resets the market's reserve ratio to 90% for two weeks. By repeating this every two weeks, the borrower can keep the reserve ratio at 90% indefinitely, even if the market was deployed with a higher ratio, reducing the assets available for lenders to withdraw.

The Wildcat Protocol

Medium
Business logic

Pending withdrawal batch debt cannot be paid by the borrower until the cycle ends

The borrower repays the pending withdrawal debt, but the market does not process the repayment until the withdrawal batch expires, so interest and fees continue to accrue on the repaid amount. The borrower therefore pays extra interest and fees until the cycle ends.

The Wildcat Protocol

Medium
Business logic

Protocol markets are incompatible with rebasing tokens

Markets store a lender's deposit as a fixed scaled balance, so when a rebasing token changes every holder's balance the lender's recorded claim does not follow it. Lenders could therefore lose funds, with the extra balance only reachable by the borrower.

The Wildcat Protocol

Medium