No deadline parameter in sellAllAmount()
and buyAllAmount()
functions:
#1257
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
disagree with severity
Sponsor confirms validity, but disagrees with warden’s risk assessment (sponsor explain in comments)
M-05
primary issue
Highest quality submission among a set of duplicates
selected for report
This submission will be included/highlighted in the audit report
sponsor disputed
Sponsor cannot duplicate the issue, or otherwise disagrees this is an issue
Lines of code
https://github.com/code-423n4/2023-04-rubicon/blob/511636d889742296a54392875a35e4c0c4727bb7/contracts/RubiconMarket.sol#L1028-L1112
Vulnerability details
Impact
There is no deadline parameter in these two functions,This missing feature enables pending transactions to be maliciously executed at a later point.
Proof of Concept
Consider following scnerio:
2.The transaction is submitted to the mempool, however, Alice chose a transaction fee that is too low for miners to be interested in including her transaction in a block. The transaction stays pending in the mempool for extended periods, which could be hours, days, weeks, or even longer.
An even worse way this issue can be maliciously exploited is through MEV:
Tools Used
Manual Review
Recommended Mitigation Steps
Add deadline param
The text was updated successfully, but these errors were encountered: