PositionAction4626.sol#_onWithdraw
should withdraw from position CDPVault position instead of address(this)
.
#13
Labels
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
bug
Something isn't working
M-03
primary issue
Highest quality submission among a set of duplicates
satisfactory
satisfies C4 submission criteria; eligible for awards
selected for report
This submission will be included/highlighted in the audit report
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
sufficient quality report
This report is of sufficient quality
Lines of code
https://github.com/code-423n4/2024-10-loopfi/blob/main/src/proxy/PositionAction4626.sol#L67
Vulnerability details
Impact
PositionAction4626.sol#_onWithdraw
does not withdraw from the correct position - it should withdraw fromposition
instead ofaddress(this)
.Bug Description
Note: This is based on the 2024-07 Loopfi contest code-423n4/2024-07-loopfi-findings#81, code-423n4/2024-07-loopfi-findings#80 issue. This protocol team applied a fix, but the fix is incomplete.
Only the bug in the
_onDeposit()
was fixed, but not the one in_onWithdraw()
.PositionAction4626.sol#_onWithdraw
does not withdraw from the correct position - it should withdraw fromposition
instead ofaddress(this)
.Proof of Concept
N/A
Tools Used
Manual Review
Recommended Mitigation Steps
Assessed type
Other
The text was updated successfully, but these errors were encountered: