MartenitsaToken::updateCountMartenitsaTokensOwner
Missing Access ControlDescription: The MartenitsaToken::updateCountMartenitsaTokensOwner
function is designed to update the count of MartenitsaTokens
owned by a user. However, due to the absence of access control, any user can call this function to arbitrarily increase their countMartenitsaTokensOwner
, potentially allowing them to mint HealthTokens
without actually owning any NFTs. This lack of access control can lead to significant security vulnerabilities and economic instability within the ecosystem.
Impact: This vulnerability can enable users to artificially inflate their token counts and mint HealthTokens
without any legitimate ownership of MartenitsaTokens
, leading to an imbalance in the token economy. It can also be used to manipulate the marketplace and the value of HealthTokens
, affecting the overall health and trust in the system.
Proof of Concept: Exploit Senario:
Bob Calls updateCountMartenitsaTokensOwner
300 times.
Bob collects rewards! equal to 100 tokens!
Recommended Mitigation: Add access control to the updateCountMartenitsaTokensOwner
function to ensure that only authorized users (e.g., marketplace contract) can call this function. This can prevent unauthorized users from manipulating their token counts.
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.