User can set isCustomReferralCode=false while using CustomReferralCode.
Owner can create CustomReferralCode. Normally when user use CustomReferralCode, isCustomReferralCode is set to true. However malicious users can set it to false.
If a user creates a trading account via createTradingAccount using a custom referral code (referralCode/customReferralCode) generated by the Owner, and sets isCustomReferralCode to false, this will lead to an incorrect condition evaluation (falling into the else branch), resulting in erroneous business logic execution (setting isCustomReferralCode to false).
This issue causes the custom referral codes (referralCode/customReferralCode) created by the Owner to be incorrectly set as isCustomReferralCode=false, indicating that they are not custom referral codes. This leads to erroneous behavior and does not align with business logic.
This can also cause confusion for other users. For example, when User A is aware that "xxxx" is a custom referral code, and they use getUserReferralData() to query the referral data, incorrect information is returned. In this case, it would return referral.isCustomReferralCode = false. This indicates that the custom referral code is not actually a custom code, creating a contradiction.
manual
Set custom referral code and non-custom referral code with different length. To judge whether it is custom or non-custom based on length.
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.