Redeemer.redeem() for Illuminate doesn't send the asset to the user. #181
Labels
3 (High Risk)
Assets can be stolen/lost/compromised directly
bug
Something isn't working
duplicate
This issue or pull request already exists
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Lines of code
https://github.com/code-423n4/2022-06-illuminate/blob/92cbb0724e594ce025d6b6ed050d3548a38c264b/redeemer/Redeemer.sol#L128
Vulnerability details
Impact
Redeemer.redeem() for Illuminate doesn't send the asset to the user.
The user might lose his underlying asset.
Proof of Concept
This function should transfer the asset to the user but it transfers to the contract.
Tools Used
Manual Review
Recommended Mitigation Steps
Modify Safe.transferFrom(IERC20(u), lender, address(this), amount); like this.
The text was updated successfully, but these errors were encountered: