Description:
A user can call RapBattle::goOnStageOrBattle
as a challenger passing a non-existent NFT ID or using other people's NFT ID to battle.
Impact:
The user can collect Cred from the battle without having a Rapper NFT.
Proof of Concept:
Add the code below to OneShotTest.t.sol
Call the test by using forge test --mt testPoCGoOnStage -vvvvv
The function will go through, however you will receive the error FAIL. Reason: ERC721NonexistentToken(10)
from the ownerOf
function after the execution.
Recommendation:
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.