Unauthorized Token Burning and Inconsistent Reward in burn Function #377
Labels
bug
Something isn't working
downgraded by judge
Judge downgraded the risk level of this issue
duplicate-85
grade-c
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
sufficient quality report
This report is of sufficient quality
unsatisfactory
does not satisfy C4 submission criteria; not eligible for awards
Lines of code
https://github.com/code-423n4/2023-09-ondo/blob/main/contracts/usdy/rUSDY.sol#L680
Vulnerability details
Impact
The burn function in the smart contract allows users with the BURNER_ROLE to burn any amount of tokens from any users' accounts so they recieve the tokens reward calculated as sharesAmount / BPS_DENOMINATOR.
This security issue can lead to unauthorized token burning and unauthorized token claim for burner, potentially causing financial harm and undermining trust in the contract.
Proof of Concept
Tools Used
Manual review
Recommended Mitigation Steps
add a check to the amount possible for the burner to burn
Assessed type
Rug-Pull
The text was updated successfully, but these errors were encountered: