You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 26, 2023. It is now read-only.
Missing token approvals can result in DoS in Marketplace.sol
Summary
The setPrincipal method approves Notional but not the other protocols
Vulnerability Detail
The setPrincipal() method in Marketplace.sol calls the Lender.solapprove method for Notional, but it doesn't do the same for APWine or Element even though the approve method explicitly shows they need approvals too. This can result in a DoS if functionality is used where APWine or Element functionality that uses safeTransferFrom because it won't have the necessary approvals.
Impact
The impact will be DoS on functionality using APWine and Element in Marketplace.sol
pashov
medium
Missing token approvals can result in DoS in
Marketplace.sol
Summary
The
setPrincipal
method approvesNotional
but not the other protocolsVulnerability Detail
The
setPrincipal()
method inMarketplace.sol
calls theLender.sol
approve
method for Notional, but it doesn't do the same for APWine or Element even though theapprove
method explicitly shows they need approvals too. This can result in a DoS if functionality is used where APWine or Element functionality that usessafeTransferFrom
because it won't have the necessary approvals.Impact
The impact will be DoS on functionality using APWine and Element in
Marketplace.sol
Code Snippet
https://github.com/sherlock-audit/2022-10-illuminate/blob/main/src/Marketplace.sol#L209
Tool used
Manual Review
Recommendation
Make the
setPrincipal()
method callILender(lender).approve()
for APWine & Element as wellDuplicate of #40
The text was updated successfully, but these errors were encountered: