"kittyTokenCounter" is only increasing and never decreasing.
"kittyTokenCounter" is only increasing and never decreasing even when we are burning/transfering tokens from this contract to another, meaning we will have some owners with s_ownerToCatsTokenId = (10,20,13,6,3) meaning this array is not guaranteed to be ordinal and in a sequence. Therefore this code piece will break the business logic:
As previously submitted this finding with "s_ownerToCatsTokenId" being in sequence it is possible for them not to be in a sequence therefore idx to be huge amount than the "s_ownerToCatsTokenId.length" meaning it will never go in the if, therefore never removing the "idx" that we are burning and again losing an nft for the owner.
High, since the owner of the nft loses one of his nfts and remains with a reference to the id of the one that is burned.
Manual review.
Remove the if and do the following:
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.