Closed c4-bot-2 closed 10 months ago
raymondfam marked the issue as sufficient quality report
raymondfam marked the issue as duplicate of #918
raymondfam marked the issue as duplicate of #403
alcueca changed the severity to 2 (Med Risk)
alcueca marked the issue as satisfactory
Lines of code
https://github.com/code-423n4/2024-01-curves/blob/516aedb7b9a8d341d0d2666c23780d2bd8a9a600/contracts/Curves.sol#L246-L250
Vulnerability details
Impact
Ether can get stuck in Curves by buying tokens and sending excess Ether or the
FeeSplitter
being set to the zero address. In these situations funds are stuck inside the contract and theres no way to recover them.Proof of Concept
https://github.com/code-423n4/2024-01-curves/blob/516aedb7b9a8d341d0d2666c23780d2bd8a9a600/contracts/Curves.sol#L246-L250
Tools Used
Manual Review
Recommended Mitigation Steps
Either return excess Ether to the user and return excess funds if no
FeeSplitter
is set or add a rescue mechanism for trusted accounts.Assessed type
ETH-Transfer