The get_secret
function is designed to restrict access by verifying that the caller is the vault owner.
The function incorrectly uses the address
type instead of &signer
, enabling any caller to set the parameter to the owner address, bypassing the access control.
Likelihood:
Anybody can call this function and pass the owner's address as the caller parameter
Impact:
Bypass of intended access control mechanism
There is no mitigation. All data on the blockchain is public, so there is no point in access control for a view function. One can consider removing the function altogether.
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.