-
Notifications
You must be signed in to change notification settings - Fork 4
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
In case if user contributes with 0 amount, his delegate is not changed #73
Comments
ydspa marked the issue as insufficient quality report |
gzeon-c4 marked the issue as unsatisfactory: |
hello @gzeon-c4 from primary issue
this is exactly what describes this report. i would be happy to get partial 50 or even less if you think so. |
gzeon-c4 marked the issue as duplicate of #311 |
gzeon-c4 marked the issue as partial-25 |
gzeon-c4 marked the issue as duplicate of #418 |
Lines of code
https://github.com/code-423n4/2023-10-party/blob/main/contracts/crowdfund/InitialETHCrowdfund.sol#L297-L298
Vulnerability details
Proof of Concept
Using
InitialETHCrowdfund._contribute
, user can provide some funds together with delegate and receive some voting power instead and delegate it(together with all other user's voting power) to provided delegate.It's possible that user will provide 0 amount. As comment states it can be used to change user's delegator. The problem is that this will change delegator only inside
ETHCrowdfundBase
, which is actually useless for the Party and then function will return. And real delegator in the Party will not be changed in this case.As result, user will think that he had changed delegator, but in reality it will be same.
Impact
Delegator for user will not be changed.
Tools Used
VsCode
Recommended Mitigation Steps
In case if amount is 0, then change delegator for user.
But be careful with using this by third parties. This should not be allowed or somehow restricted.
Assessed type
Error
The text was updated successfully, but these errors were encountered: