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

Events not emitting caller information

Summary

Events need to emit detailed information like the caller of the function

Vulnerability Details

function setPassword(string memory newPassword) external {
s_password = newPassword;
emit SetNetPassword();
}

When password is set, event does not give information of the caller who is the msg.sender

Impact

This may have usability, monitoring, off-chain tooling problems, front end problems and even security. For example security tooling if caller is logged can react to password being changed when not expected to be changed or by address not expected etc

Tools Used

Manual Analysis

Recommendations

Event emit caller information

event SetNetPassword(address indexed caller);
....
emit SetNetPassword(msg.sender);
Updates

Lead Judging Commences

inallhonesty Lead Judge
about 2 years ago
inallhonesty Lead Judge about 2 years ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
aballok Submitter
about 2 years ago
inallhonesty Lead Judge
about 2 years ago
aballok Submitter
about 2 years ago
inallhonesty Lead Judge about 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.