Open hats-bug-reporter[bot] opened 1 year ago
Hello, Thanks a lot for your attention. We don't consider misconfiguration as an issue. Also we are aware of this and have already an duplicate checker in our backend between both merkletrees. In conclusion we have so to consider this issue as invalid.
Github username: @aviggiano Submission hash (on-chain): 0x07c9f847f38879940a356f2aa64a50d010aaf3b0fd47d5be78809251400bf316 Severity: medium
Description:
Description
In the
Ibo.sol:187
, the contract does not prevent a user who is present in both the whitelist and the presale list from using both privileges. If a user should only use one of the whitelists (which can be assumed as the norm), the contract should maintain a tracking mechanism to prevent multiple privileges.Attack scenario
An attacker who is present in both the whitelist and presale list can misuse their status to enhance their profits, causing an unbalanced token distribution and a lack of fairness in token allocation.
Proof of Concept
Here, a sender who holds both privilege types can make use of both privileges, leading to potential unbalanced token distribution.
Recommendation
Implement a check to affirm that users present in both lists (whitelist and presale) are only allowed to use any one of the privileges at a time. This can be done by storing the privilege details of each user during their first deposit and restricting subsequent transactions with the other privilege.