cove icon indicating copy to clipboard operation
cove copied to clipboard

Payjoin sender: implement anti probing check

Open Sandipmandal25 opened this issue 5 months ago • 0 comments

Context

without an anti-probing check, a malicious receiver can probe which utxos belong to the sender by initiating multiple payjoin sessions and observing which inputs are offered each time.

Problem

currently, the sender does not persistently track which inputs have already been offered in previous payjoin sessions. because of this, the same input can be offered again in a later session, allowing a receiver to correlate repeated attempts and learn more about the sender’s wallet.

What needs to happen

  • track every psbt input outpoint offered during a payjoin session

  • before creating/building a new payjoin sender, check whether any input in the psbt was already offered before

  • persist this data across app restarts

    • either replace NoopSessionPersister
    • or maintain a separate persisted store for offered outpoints
  • if any reused input is detected, abort the payjoin attempt before contacting the receiver

Expected behavior

a payjoin attempt should only proceed if none of the selected inputs were previously offered in another payjoin session. if an input was already used in a previous attempt, the wallet should fail safely and fall back to the normal non-payjoin send path, or return a clear error depending on the current send flow.

Sandipmandal25 avatar Jun 08 '26 07:06 Sandipmandal25