No validations to check the ownership of NFT leads to gaining credTokens and unfair advantage.
There is no check to check whether the given tokenId
is of the msg.sender or not. Attacker can use this to send any tokenId
even if he doesn't own NFT of that tokenId
. This way, attackers can send tokenIds who have participated in staking and have better RapperSkills. This will help attackers to gain unfair advantage when they battle defenders.
Attacker can send anyone's tokenId
which has the better skills to influence the battle such as sending the tokenId
of defender.
Users don't have to mint Rapper NFT to battle and win credTokens.
Users who are still staking their NFT and have their NFT with Streets
contract can still participate in RapBattle.
Manual Review
Add the below code in _battle
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.