Due to lacking access control on MartenitsaToken::updateCountMartenitsaTokensOwner
, reward distribution mechanism of MartenitsaMarketplace::collectReward
can be heavily manipulated.
MartenitsaToken::updateCountMartenitsaTokensOwner
lacks appropriate access control, allowing any user to freely modify the count of Martenitsa tokens they own. This oversight permits the exploitation of the MartenitsaMarketplace::collectReward
function, enabling users to claim Health tokens without legitimately owning the requisite number of Martenitsa tokens.
This vulnerability allows any user to inflate their countMartenitsaTokensOwner
arbitrarily. The inflated count directly influences the reward mechanism, leading to unauthorized claim of Health tokens. Such actions can deplete the resources meant for genuine participants and disrupt the integrity and financial stability of the platform.
Foundry
Remove arbitrary tracking of balances via countMartenitsaTokensOwner
and start using actual MartenitsaToken
balances to calculate rewards:
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.