setPassword
function can be called by anyone. The are no checks ensuring that only owner of this contract can call this function. That means anyone can change owner's password.
Add this function to the PasswordStore.t.sol
file and run test.
Owner's secret password can be overriden by anyone.
VScode, Foundry, Ethers
Modify setPassword
function in a way that only owner of this contract can call this function. I could look like this:
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.