Description:
any account can call MartenitsaToken::updateCountMartenitsaTokensOwner targeting any owner address which can be used to manipulate the count for owner address by adding or substracting.
Impact:
this Impacts MartenitsaMarketplace::collectReward function ,
assuming attacker increases his wallet to 3 MartenitsaToken or multiple of 3 MartenitsaTokento collect HealthToken even without buying or receiving presents,
or/and attacker changes another user(s) count to prevent them from collecting HealthToken even if they have bought or receive presnt of 3 MartenitsaToken
Proof of Concept:
Place the following test into MartenitsaMarketplace.t.sol
.
Recommended Mitigation:
add access control only MarketPlace contract address is allowed to update the count .
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.