-
Notifications
You must be signed in to change notification settings - Fork 18
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
Funds stuck in router if no additional payload send during callOutAndBridge #898
Labels
bug
Something isn't working
downgraded by judge
Judge downgraded the risk level of this issue
duplicate-685
grade-a
Q-01
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
Comments
c4-submissions
added
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
labels
Oct 6, 2023
0xA5DF marked the issue as primary issue |
c4-pre-sort
added
the
primary issue
Highest quality submission among a set of duplicates
label
Oct 7, 2023
This was referenced Oct 7, 2023
0xA5DF marked the issue as sufficient quality report |
c4-pre-sort
added
the
sufficient quality report
This report is of sufficient quality
label
Oct 7, 2023
This was referenced Oct 13, 2023
Open
This is a duplicate of #685 |
alcueca marked the issue as duplicate of #685 |
c4-judge
added
duplicate-685
and removed
primary issue
Highest quality submission among a set of duplicates
labels
Oct 25, 2023
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
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
labels
Oct 25, 2023
alcueca marked the issue as grade-a |
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
duplicate-685
grade-a
Q-01
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
Lines of code
https://github.com/code-423n4/2023-09-maia/blob/f5ba4de628836b2a29f9b5fff59499690008c463/src/RootBridgeAgentExecutor.sol#L100-L105
Vulnerability details
Impact
The
callOutAndBridge
flow causes funds to be locked if no additional payload is send.Proof of Concept
In
RootBridgeAgentExecutor.executeWithDeposit
the function ends if the payload is not longer than 128 bytes:At this point however, the funds that were bridged in were send to the router, where they remain.
Tools Used
Manual review
Recommended Mitigation Steps
Revert, if the router is not called (
payload.length <= PARAMS_TKN_SET_SIZE
)Assessed type
Other
The text was updated successfully, but these errors were encountered: