The setPassword
function can be called by anyone.
The setPassword
function is not restricted. It is intended to be an admin function, as mentioned in the comment, but currently, anyone can set a new password.
The setPassword
function is intended to be an admin-only function, but there is no access restriction implemented. As a result, anyone, not just the owner or admin, can call this function and set a new password. This could lead to unauthorized access, misuse, or manipulation of the contract.
Manually and VS Code as tool have been used.
To mitigate this issue, access control mechanisms need to be implemented.By implementing proper access control, the contract can enforce the intended restrictions and prevent unauthorized users from modifying data or performing operations.
Anyone can call `setPassword` and set a new password contrary to the intended purpose.
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.