Skip to content

propose_authority accepts the zero address and silently overwrites a pending proposal #338

Description

@Jaydbrown

contracts/governor/src/lib.rs propose_authority does not call is_zero_stellar_account(&env, &new_authority) (unlike set_fee_recipient), does not check whether new_authority already holds Admin, and unconditionally overwrites DataKey::PendingAuthority / PendingAuthorityProposer. A fat-fingered proposal to the zero address, once accepted, would make the zero account the sole admin.


Filed from a codebase review pass.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions