-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rUSDY::burn
function: USDY tokens are refunded to the wrong address
#85
Comments
A valid point. But will leave it to the sponsor whether or not this is intended. |
raymondfam marked the issue as primary issue |
raymondfam marked the issue as sufficient quality report |
raymondfam marked the issue as high quality report |
ypatil12 (sponsor) disputed |
ypatil12 marked the issue as disagree with severity |
This is by design as a permissioned token. If a user who mints rUSDY becomes sanctioned, we would have to burn the user's rUSDY and seize there USDY. The user with the |
Given this is a clear design choice and is behaving as intended I'm going to reduce this issue to QA since it does provide the admin with a method of draining USDY from the protocol. |
kirk-baird changed the severity to QA (Quality Assurance) |
kirk-baird marked the issue as grade-c |
This previously downgraded issue has been upgraded by kirk-baird |
kirk-baird changed the severity to QA (Quality Assurance) |
kirk-baird marked the issue as grade-b |
Lines of code
https://github.com/code-423n4/2023-09-ondo/blob/47d34d6d4a5303af5f46e907ac2292e6a7745f6c/contracts/usdy/rUSDY.sol#L672-L683
Vulnerability details
Impact
In
rUSDY
contract: the burner role can burn rUSDY tokens (shares) from any user for any reason.The user is supposed to lose his rUSDY tokens while refunded the equivalent amount of USDY tokens.
But
burn
function refunds the burner (msg.sender
) with the USDY tokens instead of the intended user.Proof of Concept
burn function
Tools Used
Manual Testing.
Recommended Mitigation Steps
In
rUSDY::burn
function: USDY amount to be refunded to the account thats has it's rUSDY tokens burnt:Assessed type
Context
The text was updated successfully, but these errors were encountered: