rUSDY:front-runnable approve #183
Labels
3 (High Risk)
Assets can be stolen/lost/compromised directly
bug
Something isn't working
duplicate-102
low quality report
This report is of especially low quality
unsatisfactory
does not satisfy C4 submission criteria; not eligible for awards
Lines of code
https://github.com/code-423n4/2023-09-ondo/blob/3362e1252f3a54943e2517460e5a7988388bc821/contracts/usdy/rUSDY.sol#L276-L279
https://github.com/code-423n4/2023-09-ondo/blob/3362e1252f3a54943e2517460e5a7988388bc821/contracts/usdy/rUSDY.sol#L301-L312
Vulnerability details
Impact
rUSDY:front-runnable approve,malicious user could spend toke more than intended.
Proof of Concept
Alice had approve bob 500 amount, now alice want change allowance to 200.
Alice call
approve
function, bob could frontrun transferfrombob will be able to spend 500 +200 amount of alice, more than intended
Tools Used
manual
Recommended Mitigation Steps
Instead of setting the given amount, one can reduce from the current approval.
Assessed type
MEV
The text was updated successfully, but these errors were encountered: