Anyone can call the method setPassword
and change the owner's password
The setPassword
method does not have any access control modifier. For this reason anyone can call this method and change the owner password.
This will certainly result in changing the owner's password by anyone.
I used foundry to test the setPassword
making the transaction with an address different than the owner address.
Inherit OpenZeppelin Ownable
contract to use the onlyOwner
modifier on the setPassword
method to prevent other users from changing the owner's password.
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.