setPassword()
function does not check if the sender is the owner of the contract
The setPassword()
function does not check if the sender is the owner of the contract.
This vulnerability allows anyone to change the password, which is not the intended behavior.
Replit IDE, Foundry, Remix, PhindAI
The setPassword()
function now checks if the sender is the owner of the contract before changing the password. This is done using the require
function, which throws an error if the condition is not met.
Anyone can call `setPassword` and set a new password contrary to the intended purpose.
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.