Am I affected?

type your mpp version to check

Description

Improper Validation of Specified Quantity in Input in ZenHive mpp allows an unauthenticated remote client to inflate the fee-payer's gas cost per payment by a large multiplier, degrading the sponsor's operating margin.

When the mpp Elixir library is configured as fee payer (fee_payer: true), MPP.Tempo.Transaction.cosign_fee_payer/3 re-signs the client-supplied base fields of the 0x76 AASigned envelope verbatim, including the EIP-2930 access list, without validating its length or contents. EIP-2930 access list entries incur intrinsic gas (~2,400 gas per address, plus 1,900 gas per storage key) charged before any opcode executes, regardless of whether the listed addresses are ever touched. A malicious client submits a valid transferWithMemo call alongside a large number of fabricated access-list entries. The server co-signs and broadcasts the transaction. The intended transfer executes normally, but the fee-payer wallet pays a large multiple of the expected gas cost with no corresponding on-chain work.

At the maintainer's default of 137 access-list entries (fitting within Bandit's 10,000-byte per-header-field limit) and 100 Gwei max_fee_per_gas, per-payment gas cost rises from ~51,287 to ~380,087 gas, a 7.4x multiplier. Sustained abuse destroys the sponsor's operating margin on low-cost payments and, over time, drains the fee-payer wallet.

This issue affects mpp: from 0.2.0 before 0.6.0.

Weaknesses & attack patterns

Weakness

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

Attack patterns

CAPEC-130 · Excessive Allocation MITRE ↗

Affected — Hex / mpp Hex.pm ↗ Repository ↗

≥ 0.2.0 < 0.6.0 affected
every other version: unaffected
cpe cpe:2.3:a:ZenHive:mpp:*:*:*:*:*:*:*:*
version type semver
modules · source files · routines
modules 'Elixir.MPP.Tempo.Transaction' · 'Elixir.MPP.Methods.Tempo'
source files lib/mpp/tempo/transaction.ex · lib/mpp/methods/tempo.ex
routines 'Elixir.MPP.Tempo.Transaction':cosign_fee_payer/3 · 'Elixir.MPP.Methods.Tempo':maybe_cosign_fee_payer/2

Affected — GitHub / zenhive/mpp Repository ↗

≥ d29d54e < 5d6338e affected
every other version: unaffected
cpe cpe:2.3:a:ZenHive:mpp:*:*:*:*:*:*:*:*
version type git
modules · source files · routines
modules 'Elixir.MPP.Tempo.Transaction' · 'Elixir.MPP.Methods.Tempo'
source files lib/mpp/tempo/transaction.ex · lib/mpp/methods/tempo.ex
routines 'Elixir.MPP.Tempo.Transaction':cosign_fee_payer/3 · 'Elixir.MPP.Methods.Tempo':maybe_cosign_fee_payer/2

Configurations

The vulnerable code path is only reachable when the MPP.Methods.Tempo method is configured with fee_payer: true (server-side gas sponsorship). Default deployments with fee_payer: false are not affected, since the client pays for gas out of its own wallet.

References

Credits

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

CVSS breakdown

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

Exploitability

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None

Vulnerable System

Confidentiality
None
Integrity
High
Availability
Low

Subsequent Systems

Confidentiality
None
Integrity
None
Availability
None
« All CVEs