KittyConnect.sol::safeTransferFrom
didn't update the owner registry, accumulating all the cats that he has, and the ones he already transferred.Description:
KittyConnect.sol
allows owners to transfer their cats to a third party. The KittyConnect.sol::safeTransferFrom
function was implemented and is operational to enable it. However, the storage is not updated correctly. Although the owner transfers his cat, his registers will always store the registry about it.
Impact:
The previous owner will always have all the registers of cats that he had once. It will also keep increasing his registers. For example:
If he bought four cats and, for some reason, he sold these four cats.
The next buy will be number five. And not the number one, as it should be, considering that he is no longer the owner of the first four.
Proof of Concept:
Recommendation:
Always remember to update all storage dependencies related to the element being utilized.
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.