When creating a trading account, any address can be used as a referral, there is no check to confirm if the address has an account in the zaros protocol
The createTradingAccount
function allows any address to be specified as a referral without validation. This issue can result in abuse of the referral system, as malicious users can specify addresses that are not genuine referrers.
Referral systems are meant to reward users of the protocol, the lack of validation will discourage actual users of the protocol.
Non-users of the protocol can get multiple referrals and get more incentive than the users of the protocol
Manual Review
Referral address validation should be added to the createTradingAccount function.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.