Closed code423n4 closed 1 year ago
trust1995 marked the issue as duplicate of #305
trust1995 marked the issue as satisfactory
trust1995 changed the severity to 2 (Med Risk)
trust1995 marked the issue as partial-50
Issue was reduced to partial 50 because not enough context was given, especially when submitting the issue as high severity, which requires concrete proof of correctness.
Lines of code
https://github.com/code-423n4/2023-05-maia/blob/54a45beb1428d85999da3f721f923cbf36ee3d35/src/ulysses-omnichain/RootBridgeAgent.sol#L1219-L1222 https://github.com/code-423n4/2023-05-maia/blob/54a45beb1428d85999da3f721f923cbf36ee3d35/src/ulysses-omnichain/RootBridgeAgent.sol#L848-L852
Vulnerability details
Impact
depositGasAnycallConfig
will fail because an extrawrappedNativeToken.withdraw
is made.Proof of Concept
When an EOA calls
depositGasAnycallConfig
, ether is sent to the contract. However, an unnecessarywrappedNativeToken.withdraw
is performed.Tools Used
Manual
Recommended Mitigation Steps
Move
wrappedNativeToken.withdraw(_executionGasSpent);
outside_replenishGas
to Line 1172Assessed type
Context