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

Typographical Error in Event Name `SetNetPassword`

Vulnerability Details

The event name SetNetPassword appears to be a typographical error or oversight. The prefix "Net" in the event name is ambiguous and does not provide clear context or meaning within the contract's functionality. Given the contract's primary purpose of storing and retrieving passwords, a more intuitive name like "SetNewPassword" or "PasswordChanged" would be expected.

16 event SetNetPassword();
...
28 emit SetNetPassword();

Impact

Low. While the functionality of the contract is not directly impacted by the event name, it can lead to confusion for developers, auditors, or anyone interacting with or reviewing the contract. Clear and intuitive naming conventions are crucial for ensuring readability and understandability, especially in security-sensitive environments like smart contracts.

Recommendations

Rename the SetNetPassword event and emit to a more descriptive and intuitive name that accurately represents its function. Possible suggestions include "SetNewPassword" or "PasswordChanged". Ensure that all references to the event in the contract (and potentially in external systems or documentation) are updated to reflect the new name.

- event SetNetPassword();
+ event SetNewPassword();
...
- emit SetNetPassword();
+ emit SetNewPassword();
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.