he Natspec comment for the getPassword
function is incorrect because the function is marked as view, allowing any address to access it, not just the owner.
In the Natspec comment for the getPassword
function, it states "This allows only the owner to retrieve the password." This is incorrect, as the function is marked as view, meaning it does not modify the state of the contract. Therefore, any address can call this function, not just the owner.
The misleading comment could lead to misunderstandings about the function's access control. It may cause confusion for developers or auditors reviewing the code.
Manual Review
Update the Natspec comment for the getPassword function to accurately reflect its behavior. Mention that this function is viewable by any address, not just the owner.
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.