It is not possible to design a protocol that adds elements to an array but does not have the option to remove them.
An array is an element that can grow infinitely creating gas problems if it is large enough.
A shop can become a malicious agent that needs to be removed so that it does not continue with bad practices.
In this case it is not necessary to create a PoC as it is a design vulnerability.
It is simply necessary to build a function that removes elements from the array s_kittyShops
.
This is a very serious design problem but, since adding elements to the array is in the hands of the protocol owner, it is a MEDIUM RISK vulnerability.
Foundry
Implement a function that removes elements from the array s_kittyShops
.
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.