The Vault struct and the secret
is not private data, as the data is public on the blockchain. The get_secret
function retrieve the secret from the storage, but the secret can be accessed by attacker when the attacker knows the owner address without the owner itself running the get_secret
function.
Likelihood:
Vulnerability can always occur when the attacker knows the owner address.
Impact:
Disruption of the function of the smart contract itself, where it should be only the owner can access the secret, but instead anybody can access it.
Write the following test function on the secret_vault.move
file.
or if the attacker want to use the get_secret
function:
Consider to use encryption. All the data on the blockchain is public, and data that is sensitive should not be stored on the blockchain.
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.