The Wildcat Protocol - zaevlad's results

Banking, but worse - a protocol for fixed-rate, undercollateralised credit facilities.

General Information

Platform: Code4rena

Start Date: 16/10/2023

Pot Size: $60,500 USDC

Total HM: 16

Participants: 131

Period: 10 days

Judge: 0xTheC0der

Total Solo HM: 3

Id: 296

League: ETH

Wildcat Protocol

Findings Distribution

Researcher Performance

Rank: 110/131

Findings: 1

Award: $0.06

🌟 Selected for report: 0

🚀 Solo Findings: 0

Lines of code

https://github.com/code-423n4/2023-10-wildcat/blob/main/src/market/WildcatMarket.sol#L142 https://github.com/code-423n4/2023-10-wildcat/blob/main/src/market/WildcatMarketBase.sol#L136 https://github.com/code-423n4/2023-10-wildcat/blob/main/src/market/WildcatMarketBase.sol#L119

Vulnerability details

Impact

Markets can not be closed.

Proof of Concept

Markets can be closed to prevent any withdrawals or deposits in it. For that purpose closeMarket() functions should be called:

function closeMarket() external onlyController nonReentrant { ... }

The problem that it can be called only by Controller contract.

modifier onlyController() { if (msg.sender != controller) revert NotController(); _; }

And there is no function in Controller contract to implement this call, so markets can not be closed.

Tools Used

Manual review

Provide an additional functions in the Controller contract to be able to close markets.

Assessed type

Context

#0 - c4-pre-sort

2023-10-27T07:32:36Z

minhquanym marked the issue as duplicate of #147

#1 - c4-judge

2023-11-07T14:10:02Z

MarioPoneder marked the issue as partial-50

#2 - c4-judge

2023-11-07T14:16:53Z

MarioPoneder changed the severity to 3 (High Risk)

AuditHub

A portfolio for auditors, a security profile for protocols, a hub for web3 security.

Built bymalatrax © 2024

Auditors

Browse

Contests

Browse

Get in touch

ContactTwitter