-
Notifications
You must be signed in to change notification settings - Fork 14
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
It is not possible to call RestrictionManager.updateMembers
through the gateway and update multiple members at the same time
#393
Comments
raymondfam marked the issue as low quality report |
raymondfam marked the issue as primary issue |
raymondfam marked the issue as duplicate of #29 |
gzeon-c4 marked the issue as unsatisfactory: |
@gzeon-c4 Can you elaborate why exactly this is invalid. Was not able to find anything that is suggesting the issue is invalid. |
gzeon-c4 marked the issue as not a duplicate |
gzeon-c4 removed the grade |
gzeon-c4 changed the severity to QA (Quality Assurance) |
valid QA, not breaking anything since the singular updateMember is still available @hieronx |
hieronx (sponsor) acknowledged |
Agreed 👍 |
Lines of code
https://github.com/code-423n4/2023-09-centrifuge/blob/512e7a71ebd9ae76384f837204216f26380c9f91/src/token/RestrictionManager.sol#L62-L67
Vulnerability details
Impact
When updating multiple members, centrifuge must send one massage for each member they want to update to the gateway and can not do the update at once
Proof of Concept
All massages that are send from centrifuge to the chain the protocol is deployed are send to the gateway. For a massage to be executed the function
Gateway. handle()
needs to recognize its messageType. Once the messageType is confirmed to be one of those that can be processed from thehandle()
function the relevant functions in other contracts are called. The problem is that there is no messageType that enables thehandle()
function to callRestrictionManager.updateMembers
. This means that there is no way to update multiple members at the same time using the gateway.Tools Used
Manual review
Recommended Mitigation Steps
Add a messageType to the enum
Call
in the massages library and the corresponding functions to the library to identify this messageTyps as well as format and parse messages forupdateMembers
. Also add an additional if statement toGateway.handle()
that processes this type of messages.Assessed type
Other
The text was updated successfully, but these errors were encountered: