authorised_enablers
role Inconsistencies in Pool Management.
#203
Labels
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
bug
Something isn't working
🤖_04_group
AI based duplicate group recommendation
sufficient quality report
This report is of sufficient quality
Lines of code
https://github.com/code-423n4/2024-08-superposition/blob/main/pkg/seawater/src/lib.rs#L120
Vulnerability details
In the current implementation, the role of
authorised_enablers
has inconsistencies:Disabling Pools: While the role description of
authorised_enablers
suggest they are only authorized to enable pools, however they can also disable them. This dual functionality is not consistent with the intended scope of the role.Pool Creation: The
authorised_enablers
are not allowed to create new pools, as this responsibility is exclusively reserved for the admin. However, the role suggests they have broader control over pool creation.Impact
Role Confusion and Security Risks: The dual functionality of enabling and disabling pools by
authorised_enablers
introduces confusion about the intended roles and permissions. This can lead to unauthorized or unexpected actions.Proof of Concept
Tools Used
Manual Review
Recommended Mitigation Steps
Implement functionality according to the role specification.
Assessed type
Access Control
The text was updated successfully, but these errors were encountered: