SwapAction.sol#transferAndSwap
is still payable though direct ETH is not supported anymore.
#12
Labels
bug
Something isn't working
downgraded by judge
Judge downgraded the risk level of this issue
grade-b
primary issue
Highest quality submission among a set of duplicates
Q-06
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
🤖_primary
AI based primary recommendation
🤖_07_group
AI based duplicate group recommendation
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/SwapAction.sol#L102
Vulnerability details
Impact
SwapAction.sol#transferAndSwap
supports native ETH transfer, but all native ETH swaps (balancer, pendle) are removed.Bug Description
Note: This is based on the 2024-07 Loopfi contest code-423n4/2024-07-loopfi-findings#70 issue. This protocol team applied a fix, but the fix is incomplete.
The original fix was applied that all native ETH support is removed, and all payable modifiers for external functions are removed. However,
SwapAction.sol#transferAndSwap
was left out, and it is still marked payable.Proof of Concept
N/A
Tools Used
Manual Review
Recommended Mitigation Steps
Remove the payable modifier.
Assessed type
Payable
The text was updated successfully, but these errors were encountered: