No check to allow only the owner of the MartenitsaToken
contract to change the amount of countMartenitsaTokensOwner
variable. This results in any user able to change the variable, making it possible to obtain more HeathTokens than it is intended by the protocol.
In MartenitsaToken::updateCountMartenitsaTokensOwner
function, there is no check which enables any user to access this function and change the countMartenitsaTokensOwner
variable. Any malicious actor can use this function to increase and decrease the countMartenitsaTokensOwner
variable.
A malicious user/producer can:
User can use this function to increase it's own countMartenitsaTokensOwner
variable to gain more HealthTokens.
User/Producer can use this function to decrease anyone's countMartenitsaTokensOwner
variable such that they are unable to claim HealthTokens even when they have sufficient MartenitsaTokens with them.
Manual Review
Add onlyOwner
modifier in the MartenitsaToken::updateCountMartenitsaTokensOwner
function to restrict the access to only the owner of the 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.