Transfering RamNft doesn't update the ram charateristic
The current implementation of the RamNFT contract does not update the ram characteristic to reflect the new owner when an NFT is transferred. This oversight allows the previous owner to potentially exploit the system for unfair benefits.
UserA enters Dussehra::enterPeopleWhoLikeRam
and receives NFT with tokenID 'X'
UserA decides he like Ravana more and transfer his NFT with tokenId 'X' to UserB.
Organizer picks the NFT with tokenId 'X' but instead of selecting UserB he selects UserA as Ram.
UserA wins half the pot after killing Ravana (traitor)
Manual review, foundry
Override the _beforeTokenTransfer method to update the ram attribute whenever an NFT is transferred. This will ensure that the correct owner is recognized, preventing exploitation due to outdated characteristics.
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.