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

anyone can restore the password.

Summary

  • any one can call the function setPassword and store another password diffrent from the stored one by the owner.

Vulnerability Details

  • it's pretty clear no need for details

Impact

  • if the owner is dump enough to not remember at least part of his password.he can use the new password for something serious then he get hacked by the bad actor who changed this password.

  • the owner will lose his stored address.

Tools Used

manual review

Recommendations

  • check that the caller to this function is the actual owner.

function setPassword(string memory newPassword) external {
>> if (msg.sender != owner ) return ;
s_password = newPassword;
emit SetNetPassword();
}
Updates

Lead Judging Commences

inallhonesty Lead Judge
about 2 years ago
inallhonesty Lead Judge about 2 years ago
Submission Judgement Published
Invalidated
Reason: Other
ElHaj Submitter
about 2 years ago
inallhonesty Lead Judge
about 2 years ago
ElHaj Submitter
about 2 years ago
inallhonesty Lead Judge about 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.