High: Original underlying token is not transferred back to the user #177
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/217ddfef05bc9df5c7b94f1c3226a46ee136b57d/redeemer/Redeemer.sol#L128
Vulnerability details
Impact
In
redeem
, the original underlying token should be transferred back to the user when an iPT is redeemed. But the target of the transfer is actuallyaddress(this)
, i.e. the Redeemer.Recommended Mitigation Steps
Transfer the original underlying token to the user, as it is intended.
The text was updated successfully, but these errors were encountered: