Am I affected?

type your mpp version to check

Description

Authentication Bypass by Capture-replay in ZenHive mpp allows an unauthenticated third party to obtain paid resources by replaying a transfer settled by an unrelated payer.

MPP.Methods.Tempo normally binds a settled TIP-20 TransferWithMemo to the specific challenge under verification through an attribution nonce carried in the memo. When a static "memo" is configured in method_config, check_matched_memo_binding/3 returns the match unconditionally and that binding is skipped, leaving only token, recipient, amount and the static memo value to match on. The static memo is echoed in every unauthenticated 402 response and Tempo transfers are public, so an attacker can take any matching transfer paid by a legitimate customer, request a fresh challenge for the same route, and present that transaction hash as a type="hash" credential. The hash path performs no sender or signature check tying the presenter to the wallet that broadcast the transfer.

This issue affects mpp: from 0.6.1 before 0.6.4.

Weaknesses & attack patterns

Weakness

CWE-294 · Authentication Bypass by Capture-replay in catalog → MITRE ↗

Attack patterns

CAPEC-60 · Reusing Session IDs (aka Session Replay) MITRE ↗

Affected — Hex / mpp Hex.pm ↗ Repository ↗

0.6.1 < 0.6.4 affected
every other version: unaffected
default status unaffected
cpe cpe:2.3:a:ZenHive:mpp:*:*:*:*:*:*:*:*
modules · source files · routines
modules 'Elixir.MPP.Methods.Tempo'
source files lib/mpp/methods/tempo.ex
routines 'Elixir.MPP.Methods.Tempo':verify/2 · 'Elixir.MPP.Methods.Tempo':validate_config!/1

Affected — GitHub / zenhive/mpp Repository ↗

542a525 < 2207d7f affected
every other version: unaffected
default status unaffected
cpe cpe:2.3:a:ZenHive:mpp:*:*:*:*:*:*:*:*
modules · source files · routines
modules 'Elixir.MPP.Methods.Tempo'
source files lib/mpp/methods/tempo.ex
routines 'Elixir.MPP.Methods.Tempo':verify/2 · 'Elixir.MPP.Methods.Tempo':validate_config!/1

Workarounds

Remove the static "memo" from the Tempo method_config so verification falls back to the default per-challenge attribution binding, which ties each settled transfer to the challenge being verified. Where a static memo must be kept, configure a dedup store (for example MPP.Tempo.ConCacheStore) with a TTL at least as long as the challenge expiry, which reduces unlimited replay to a race on the transaction hash rather than closing it.

Configurations

Only deployments that configure a static "memo" in the Tempo method_config are affected. Deployments using the default per-challenge attribution memo are not: that path binds each settled transfer to the challenge under verification and is single-use by construction.

References

Credits

E.FU Finder Remediation developer
Jonatan Männchen / EEF Analyst

CVSS breakdown

CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
« All CVEs