TradingAccountBranch:createTradingAccount()
doesn't correctly validate that the provided referralCode is actually a custom one, since it trusts the user input.
Assume that a custom referral code "aaaaa" has ben registered by the owner.
A user can call TradingAccountBranch:createTradingAccount("aaaaa", false)
and treat this code as a non-custom one since the function trusts the user input.
Since the parameter isCustomReferralCode = false
we enter in the following else branch that handles non-custom referral codes:
Users can pass a valid custom referral code but using it as a non-custom code.
Manual Review
Instead of relying on the parameter isCustomReferralCode
directly check if the provided code is a custom one
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.