Open code423n4 opened 1 year ago
trust1995 marked the issue as primary issue
trust1995 marked the issue as satisfactory
0xBugsy marked the issue as sponsor confirmed
0xBugsy marked the issue as disagree with severity
Funds are permanently stuck, therefore high severity is appropriate.
trust1995 marked the issue as selected for report
We recognize the audit's findings on Anycall. These will not be rectified due to the upcoming migration of this section to LayerZero.
Lines of code
https://github.com/code-423n4/2023-05-maia/blob/main/src/ulysses-omnichain/RootBridgeAgent.sol#L1259-L1264
Vulnerability details
RootBridgeAgent.sweep()
will fail as it tries to transferaccumulatedFees
usingSafeTransferLib.safeTransferETH()
but fails to unwrap the fees by withdrawing fromwrappedNativeToken
.Impact
The
accumulatedFees
will be stuck inRootBridgeAgent
without any functions to withdraw them.Proof of Concept
Add the below test case to
RootTest.t.sol
.Recommended Mitigation Steps
Add
wrappedNativeToken.withdraw(_accumulatedFees);
tosweep()
before transfering.Assessed type
Other