-
Notifications
You must be signed in to change notification settings - Fork 0
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
Inconsistent Human Check in Migrate Function Allows Non-Human Entities to Migrate Tokens After invitationOnlyTime #100
Comments
for non-human, it reverts in |
@0xpinky thanks for commenting , the issue is about the owner, not avatars. |
Yes @0xmahdirostami .. I saw this #50. which is mentioning about unauthorized caller calling the migrate. Also, the migration is The reason for having human I think, there is not security vulnerability. |
@0xpinky thanks for commenting, it seems like a misunderstanding in my issue, so i could explain it better: the whole issue that i pointed here is that, comments says:
But if cost is 0, anyone could migrate others after bootstrap period. (it doesn't relate to amount being 0, amount could be 0 or higher) |
lets see sponsor's comments.. issue #50 has this impact section.
|
Pulling a very clearly scoped line comment out of context does not qualify an issue. |
indeed, that was meant as a sanity check. And partially it could also revert on burning; but it could be that a group owns some of it s own token, and then it would proceed to burn group tokens without handling the associated collateral; so this sanity check is required in my understanding. |
Github username: @0xmahdirostami
Twitter username: 0xmahdirostami
Submission hash (on-chain): 0x62526d48951dac943e33dd81e513234b3009e538faf775839335b85186111f42
Severity: low
Description:
Description
The
migrate
function in the contract is designed to only allow humans to migrate tokens after the bootstrap period, as indicated by the comment:// Only humans can migrate v1 tokens after the bootstrap period.
However, the actual implementation allows non-human entities (e.g., groups) to migrate if the invitation cost is zero, leading to a mismatch between the intended behavior and the code.
Impact
The contract not working as intended.
Mitigation
If the contract just wants to allow humans to migrate other users after invitationOnlyTime, the check to ensure only humans can migrate should be independent of the invitation cost. The condition should be modified to always check if the owner is a human after the bootstrap period, regardless of the cost.
Updated Code:
Otherwise, if comments are wrong, try to rewrite the document.
The text was updated successfully, but these errors were encountered: