Am I affected?

type your mpp version to check

Description

Improper Validation of Specified Quantity in Input in ZenHive mpp allows a client holding an open payment channel to obtain paid resources without being charged.

MPP.Session.Actions.accept_voucher/3 in lib/mpp/session/actions.ex treats a voucher whose cumulativeAmount equals the channel's already-accepted cumulative amount as an idempotent success, returning the channel unchanged without calling maybe_spend/2. The credential verifies, the protected resource is served, and spent and units stay where they were. Because the server issues a fresh challenge per request and the credential replay store keys on challenge id and payload, the same signed voucher can be re-presented under every new challenge, so one paid voucher yields an unbounded number of paid units. The path is reachable from any method built on MPP.Session.Method through the Plug, MCP, JSON-RPC and WebSocket transports.

This issue affects mpp: from 0.14.0 before 0.16.2.

Weaknesses & attack patterns

Weakness

CWE-1284 · Improper Validation of Specified Quantity in Input in catalog → MITRE ↗

Attack patterns

CAPEC-212 · Functionality Misuse MITRE ↗

A client that has opened and funded a payment channel once can re-present the same signed voucher indefinitely and receive paid resources without any further charge. Operators running mpp as paid-API middleware lose revenue in proportion to how much the client consumes, with nothing in the channel state recording the usage.

Affected — Hex / mpp Hex.pm ↗ Repository ↗

0.14.0 < 0.16.2 affected
every other version: unaffected
cpe cpe:2.3:a:ZenHive:mpp:*:*:*:*:*:*:*:*
modules · source files · routines
modules 'Elixir.MPP.Session.Actions'
source files lib/mpp/session/actions.ex
routines 'Elixir.MPP.Session.Actions':dispatch/2 · 'Elixir.MPP.Session.Actions':handle/2

Affected — GitHub / zenhive/mpp Repository ↗

82df569 < 7270edc affected
every other version: unaffected
cpe cpe:2.3:a:ZenHive:mpp:*:*:*:*:*:*:*:*
modules · source files · routines
modules 'Elixir.MPP.Session.Actions'
source files lib/mpp/session/actions.ex
routines 'Elixir.MPP.Session.Actions':dispatch/2 · 'Elixir.MPP.Session.Actions':handle/2

References

Credits

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

CVSS breakdown

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