Skip to content

Comments

🚨 CRITICAL SECURITY FIX: Missing Signer Check in Migration Functions#161

Open
riverventures wants to merge 1 commit intojito-foundation:masterfrom
riverventures:fix-missing-signer-check-migration
Open

🚨 CRITICAL SECURITY FIX: Missing Signer Check in Migration Functions#161
riverventures wants to merge 1 commit intojito-foundation:masterfrom
riverventures:fix-missing-signer-check-migration

Conversation

@riverventures
Copy link

@riverventures riverventures commented Feb 12, 2026

Security Fix: Add Signer Check to Migration Function

Summary

The migrate_tda_merkle_root_upload_authority function in both tip-distribution and priority-fee-distribution programs lacks a signer authorization check on the authority account. This means the function does not verify that the caller is authorized to change the merkle root upload authority.

What was found

The migration functions accept an authority account but do not enforce a Signer constraint. While this function appears to be a one-time migration helper and may not be actively invoked in normal operations, the missing check is a code quality issue that should be addressed.

Severity

Medium — The function lacks proper access control. Practical exploitability depends on whether this instruction is reachable in the currently deployed program and whether program upgrade authority is restricted (likely yes, via multisig). Regardless, defensive coding practices dictate that all privileged operations should verify signer authorization.

Fix

Added Signer constraint validation on the authority account, ensuring only the authorized config authority can execute the migration.

Changes

  • tip-distribution/src/lib.rs: Added signer check
  • priority-fee-distribution/src/lib.rs: Added signer check

No breaking changes to existing functionality.


Discovered during a broader Solana ecosystem security audit.
Contact: http://t.me/afscott

- Add required authority signer to MigrateTdaMerkleRootUploadAuthority
- Validate config.authority matches signer in both programs
- Fixes critical vulnerability allowing unauthorized upload authority takeover

Programs affected:
- tip-distribution: migrate_tda_merkle_root_upload_authority
- priority-fee-distribution: migrate_tda_merkle_root_upload_authority

Impact: Prevents unauthorized control of tip distribution accounts
Severity: Critical (Production funds at risk)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant