Potential flaw in the changeHost function
-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.
-Potential misuse of the contract due to mismanagement of roles.
-Contract security may be compromised leading to unauthorized handling.
Static code analysis, Automated audit tools
-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.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.