The set_secret function is designed to store a user's secret once as a Vault resource. However, the current implementation allows the function to be called indefinitely for a single account, resulting in unnecessary consumption of gas by the user
Likelihood:
The move_to operation has a high gas cost (~1000-5000 units)
No protection allows unlimited calls
Impact:
Financial losses of users due to useless gas consumption
Possibility of depletion of account balance by an attacker
Network performance degradation due to spam transactions
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.