-
Notifications
You must be signed in to change notification settings - Fork 8
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
DepositQueue#sweepERC20 can be sandwiched #386
Labels
bug
Something isn't working
downgraded by judge
Judge downgraded the risk level of this issue
edited-by-warden
grade-b
Q-39
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
🤖_114_group
AI based duplicate group recommendation
satisfactory
satisfies C4 submission criteria; eligible for awards
sufficient quality report
This report is of sufficient quality
Comments
howlbot-integration
bot
added
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
🤖_114_group
AI based duplicate group recommendation
bug
Something isn't working
edited-by-warden
sufficient quality report
This report is of sufficient quality
labels
May 9, 2024
alcueca marked the issue as not a duplicate |
c4-judge
removed
duplicate-381
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
labels
May 16, 2024
alcueca changed the severity to 3 (High Risk) |
c4-judge
added
3 (High Risk)
Assets can be stolen/lost/compromised directly
upgraded by judge
Original issue severity upgraded from QA/Gas by judge
labels
May 16, 2024
alcueca marked the issue as duplicate of #326 |
c4-judge
added
duplicate-326
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
downgraded by judge
Judge downgraded the risk level of this issue
and removed
3 (High Risk)
Assets can be stolen/lost/compromised directly
upgraded by judge
Original issue severity upgraded from QA/Gas by judge
labels
May 16, 2024
alcueca changed the severity to 2 (Med Risk) |
c4-judge
added
the
satisfactory
satisfies C4 submission criteria; eligible for awards
label
May 17, 2024
alcueca marked the issue as satisfactory |
c4-judge
added
3 (High Risk)
Assets can be stolen/lost/compromised directly
upgraded by judge
Original issue severity upgraded from QA/Gas by judge
and removed
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
downgraded by judge
Judge downgraded the risk level of this issue
labels
May 24, 2024
alcueca changed the severity to 3 (High Risk) |
alcueca marked the issue as not a duplicate |
alcueca changed the severity to QA (Quality Assurance) |
c4-judge
added
downgraded by judge
Judge downgraded the risk level of this issue
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
and removed
3 (High Risk)
Assets can be stolen/lost/compromised directly
upgraded by judge
Original issue severity upgraded from QA/Gas by judge
labels
May 27, 2024
alcueca marked the issue as grade-b |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Something isn't working
downgraded by judge
Judge downgraded the risk level of this issue
edited-by-warden
grade-b
Q-39
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
🤖_114_group
AI based duplicate group recommendation
satisfactory
satisfies C4 submission criteria; eligible for awards
sufficient quality report
This report is of sufficient quality
Lines of code
https://github.com/code-423n4/2024-04-renzo/blob/519e518f2d8dec9acf6482b84a181e403070d22d/contracts/RestakeManager.sol#L274
Vulnerability details
Impact
DepositQueue is expected to receive rewards in any of the collateral tokens. They are expected to be forwarded to OperatorDelegators via
sweepERC20
.As the collateral balances of
DepositQueue
are not included inRestakeManager#calculateTVLs
, one can monitorDepositQueue#sweepERC20
transactions,deposit
before them, initiate the withdrawal right after (at a higher ezETH exchange rate), and claim it aftercoolDownPeriod
, stealing rewards from honest depositors who have been holding ezETH for a significantly longer duration.Proof of Concept
sweepERC20
transaction in the mempool;sweepERC20
transaction is mined;coolDownPeriod
.Recommended Mitigation Steps
Include DepositQueue's balance in calculateTVL's, minus the fee that would be deduced during
sweepERC20
.Assessed type
Other
The text was updated successfully, but these errors were encountered: