UlyssesRouter has no expiration time protection #719
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
duplicate-504
satisfactory
satisfies C4 submission criteria; eligible for awards
Lines of code
https://github.com/code-423n4/2023-05-maia/blob/54a45beb1428d85999da3f721f923cbf36ee3d35/src/ulysses-amm/UlyssesRouter.sol#L49
https://github.com/code-423n4/2023-05-maia/blob/54a45beb1428d85999da3f721f923cbf36ee3d35/src/ulysses-amm/UlyssesRouter.sol#L59
https://github.com/code-423n4/2023-05-maia/blob/54a45beb1428d85999da3f721f923cbf36ee3d35/src/ulysses-amm/UlyssesRouter.sol#L73
Vulnerability details
Impact
UlyssesRouter has no expiration time protection, if the token price changes before tx execution, it will affect user earnings.
Proof of Concept
Tools Used
Manual review
Recommended Mitigation Steps
Add expiration time protection for UlyssesRouter
Assessed type
MEV
The text was updated successfully, but these errors were encountered: