AddPartyCardsAuthority has no function to abdicateAuthority
#511
Labels
bug
Something isn't working
downgraded by judge
Judge downgraded the risk level of this issue
grade-a
insufficient quality report
This report is not of sufficient quality
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
Lines of code
https://github.com/code-423n4/2023-10-party/blob/main/contracts/party/PartyGovernanceNFT.sol#L486
https://github.com/code-423n4/2023-10-party/blob/main/contracts/authorities/AddPartyCardsAuthority.sol#L7
Vulnerability details
Impact
Parties have an
abdicateAuthority
function which relinquishes authority role for msg.sender.The issue is AddPartyCardsAuthority does not have a mechanism to call the
abdicateAuthority
function, making the function useless as it is never calledProof of Concept
Parties create proposals to add an Authority. These authorities have privileges like altering
votingPower
of a user ortotalVotingPower
of a party.Parties have an
abdicateAuthority
function, which is expected to be called by an authority to give up the authority role:The problem is that, the current implementations of authorities(AddPartyCardsAuthority), which protocol created(and is expected to be used by most parties), does not have a way to call the
abdicateAuthority
function.Tools Used
Manual Review
Recommended Mitigation Steps
abdicateAuthority
function. The function should only be callable by the Party.Assessed type
Context
The text was updated successfully, but these errors were encountered: