Anyone can call MartenitsaToken::updateCountMartenitsaTokensOwner
function and manipulate MartenitsaToken::countMartenitsaTokensOwner
mapping for any address which can lead to unlimited reward collection in MartenitsaMarketplace::collectReward
function.
Access control is missing for MartenitsaToken::updateCountMartenitsaTokensOwner
function. Function is sensitive because it manipulates MartenitsaToken::countMartenitsaTokensOwner
mapping for specific address.
Anyone can manipulate MartenitsaToken::countMartenitsaTokensOwner
mapping for any address which can lead to single user minting unlimited amount of health tokens by collecting reward in MartenitsaMarketplace::collectReward
function.
Place the following test into MartenitsaVoting.t.sol
.
Manual review
Add access control to MartenitsaToken::updateCountMartenitsaTokensOwner
function. MartenitsaToken::updateCountMartenitsaTokensOwner
function should be called only by MartenitsaMarketplace contract.
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.