Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: low
Invalid

Misleading Natspec Comment

Summary

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.

Vulnerability Details

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.

Impact

The misleading comment could lead to misunderstandings about the function's access control. It may cause confusion for developers or auditors reviewing the code.

Tools Used

Manual Review

Recommendations

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.

Updates

Lead Judging Commences

inallhonesty Lead Judge
almost 2 years ago
inallhonesty Lead Judge almost 2 years ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.