The get_secret
function only check if the passed address caller
is the owner and returns the secret of the owner. The problem is it does not require the signer to be the owner, rather any signer of the transaction can get the owner's secret
Paste the following test in secret_vault.move
and run aptos move test -f test_anyone_can_get_secret
:
Take a signer as parameter instead of just address:
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.