Christmas Dinner

First Flight #31
Beginner FriendlyFoundrySolidity
100 EXP
View results
Submission Details
Severity: medium
Invalid

Improper Role Validation in changeHost Function

Summary

Potential flaw in the changeHost function

Vulnerability Details

-The changeHost function lacks a check to prevent assignment of a host role to a user who was previously a host.
-This can lead to confusion arising from unclear host account permissions and rights.

Impact

-Potential misuse of the contract due to mismanagement of roles.
-Contract security may be compromised leading to unauthorized handling.

Tools Used

Static code analysis, Automated audit tools

Recommendations

-Introduce a preventive check in changeHost function to avoid re-assigning host role to the same user.
-Consider integrating role-based access control for streamlined authorization management.

Updates

Lead Judging Commences

0xtimefliez Lead Judge 10 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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