Skip to content

fix: prevent replay of fulfilled mpp payments#359

Closed
dvansari65 wants to merge 1 commit into
solana-foundation:mainfrom
dvansari65:feat/mpp-replay-protection
Closed

fix: prevent replay of fulfilled mpp payments#359
dvansari65 wants to merge 1 commit into
solana-foundation:mainfrom
dvansari65:feat/mpp-replay-protection

Conversation

@dvansari65
Copy link
Copy Markdown

No description provided.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 8, 2026

@dvansari65 is attempting to deploy a commit to the Solana Foundation Team on Vercel.

A member of the Team first needs to authorize it.

@dvansari65
Copy link
Copy Markdown
Author

  • add replay protection for fulfilled MPP payments in the server middleware
  • reject duplicate payment proofs with a non-retryable verification_failed 402 response
  • mark proofs as consumed only after the protected upstream response succeeds
  • wire a default replay store into pay server start so the protection is active out of the box

@lgalabru
Copy link
Copy Markdown
Collaborator

hey @dvansari65! thanks for opening this PR.
This issue was caught and fixed at the mpp-sdk level a few days ago.
PR #362 is pulling the latest version of this build which is fixing this issue.
Thanks for looking into this, feel free to re-open if you're seeing something else.

@lgalabru lgalabru closed this May 11, 2026
@dvansari65
Copy link
Copy Markdown
Author

dvansari65 commented May 11, 2026

@lgalabru glad to hear this, while doing this , I thought I am doing wrong cuz I was reading about this 402 payment security check on on some avalanche official page so I thought , I can do something in solana/pay repo.

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.

2 participants