Absence of check allows to modify token count in MartenitsaToken
The function MartenitsaToken::updateCountMartenitsaTokensOwner updates the amount of tokens an user has:
However, because the function is external and has no checks for ownership, anyone could modify the count of tokens of other person or itself.
Allows to grief and modify the token count for the attacker´s benefit
Foundry, Manual review
PoC:
Add a line that checks if the address that sends the call is allowed to modify the token 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.