Closed c4-submissions closed 1 year ago
minhquanym marked the issue as duplicate of #162
minhquanym marked the issue as duplicate of #147
MarioPoneder marked the issue as partial-50
MarioPoneder changed the severity to 2 (Med Risk)
MarioPoneder changed the severity to 3 (High Risk)
Lines of code
https://github.com/code-423n4/2023-10-wildcat/blob/main/src/market/WildcatMarketConfig.sol#L128-L144 https://github.com/code-423n4/2023-10-wildcat/blob/main/src/libraries/MarketState.sol#L59-L61 https://github.com/code-423n4/2023-10-wildcat/blob/main/src/market/WildcatMarket.sol#L53
Vulnerability details
Impact
Maximum supply cannot be increased and by extension the max deposit limit too.
Proof of Concept
WildcatMarketConfig@setMaxTotalSupply
is only callable by the WildcatMarketController but is not used anywhere there.WildcatMarketConfig.sol
Tools Used
Manual Review
Recommended Mitigation Steps
Add the missing logic to allow the borrower to set the maximum total supply in the
WildcatMarketController
or change the modifier fromonlyController
toonlyBorrower
forWildcatMarketConfig@setMaxTotalSupply
.Assessed type
Other