You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
The revoke function in the CertifierHbbft contract does not check if the address was previously certified before revoking its certification. This can lead to inconsistent state tracking and potentially misleading event emissions. The function unconditionally sets the certification status to false and emits a Revoked event, even if the address was not certified to begin with.
Likelihood: Medium
Description:
The revoke function in the CertifierHbbft contract does not check if the address was previously certified before revoking its certification. This can lead to inconsistent state tracking and potentially misleading event emissions. The function unconditionally sets the certification status to false and emits a Revoked event, even if the address was not certified to begin with.
The vulnerable code is:
This implementation could result in:
Recommendation:
Modify the revoke function to check the current certification status before making changes:
This change ensures that:
The text was updated successfully, but these errors were encountered: