Closed howlbot-integration[bot] closed 1 month ago
This check leaves little doubt that it's intended behavior:
File: AccessControlHooks.sol
862: // If the recipient is a known lender, skip access control checks.
863: if (!isKnownLenderOnMarket[to][msg.sender]) {
...and the invariant holds: tokens are transferred not minted
3docSec marked the issue as unsatisfactory: Invalid
Lines of code
https://github.com/code-423n4/2024-08-wildcat/blob/fe746cc0fbedc4447a981a50e6ba4c95f98b9fe1/src/market/WildcatMarketToken.sol#L41
Vulnerability details
Proof of Concept
Invariant states the following:
Accounts which are blocked from deposits, or which do not have a credential on markets which require it for deposits, should never be able to mint market tokens.
However, a user who is blocked from depositing still remains able to receive transfers of tokens that another account has deposited, which objectively reaches an identical state within the protocol.
Add the following test to
WildcatMarketToken.t.sol
:Recommended Mitigation Steps
To fully enforce the stated invariant, a blocked depositor should not be able to receive market tokens.
Assessed type
Invalid Validation