get_secret function
has ineffective access control, anyone can pass @owner
as function argument to satisfy the check and the function is callable by anyone
Likelihood: high
Any caller can pass @owner as function param to get the vault secret. If vault contains any funds, it can be exploited by the attacker
Impact: high
Vault containing funds can be drained out by the attacker as the view function is callable by anyone
Remove the caller param and directly check whether the caller is owner or not, and maintain the owner
state variable to track the owner of the vault. Such that, only owner can call the get_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.