set_secret
- Anyone can set their secret.Only the owner can set the secrets
But there is no access control, so anyone can set the secrets
Likelihood:
When users set the secrets, it always happens.
Impact:
Anybody can set their secrets.
Add the access control for set_secret
.
Option 1. Add direct check if caller is an owner.
Option 2. Add a modifier named onlyOwner
and use it.
In Move for Aptos, the term "owner" refers to a signer, which is a verified account that owns a given resource, has permission to add resources and the ability to grant access or modify digital assets. Following this logic in this contest, the owner is the account that owns `Vault`. This means that anyone has right to call `set_secret` and then to own the `Vault` and to retrieve the secret from the `Vault` in `get_secret` function. Therefore, this group is invalid, because the expected behavior is anyone to call the `set_secret` function.
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.