Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: high
Valid

Lack of access control in `setPassword` function

Summary

Access Control Deficiency in setPassword Function

Vulnerability Details

The setPassword function lacks a critical access control check to verify the identity of the transaction sender.

Impact

This vulnerability allows any unauthorized user to invoke the setPassword function and potentially alter the owner's password.

Tools Used

Manual Review

Recommendations

It is strongly advised to implement proper access control by including a require statement to verify that the msg.sender is the designated owner before allowing password modifications.

Updates

Lead Judging Commences

inallhonesty Lead Judge
almost 2 years ago
inallhonesty Lead Judge almost 2 years ago
Submission Judgement Published
Validated
Assigned finding tags:

finding-lacking-access-control

Anyone can call `setPassword` and set a new password contrary to the intended purpose.

Support

FAQs

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