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 drain the fee-payer wallet in a single request by naming an arbitrarily high gas price.

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 max_fee_per_gas and max_priority_fee_per_gas, without validating that they are within reasonable bounds. A malicious client embeds arbitrarily large values for these fields in the signed envelope. The server co-signs and broadcasts the transaction. The effective_gas_price billed against the fee-payer wallet is derived from the attacker-supplied ceilings, so the server pays those inflated per-gas rates out of its own wallet. A single crafted request can drain the wallet entirely, after which the server can no longer sponsor gas for legitimate payment requests.

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
default status unaffected
cpe cpe:2.3:a:ZenHive:mpp:*:*:*:*:*:*:*:*
modules · source files · routines
modules 'Elixir.MPP.Tempo.Transaction'
source files lib/mpp/tempo/transaction.ex
routines 'Elixir.MPP.Tempo.Transaction':cosign_fee_payer/3

Affected — GitHub / zenhive/mpp Repository ↗

d29d54e < 5d6338e affected
every other version: unaffected
default status unaffected
cpe cpe:2.3:a:ZenHive:mpp:*:*:*:*:*:*:*:*
modules · source files · routines
modules 'Elixir.MPP.Tempo.Transaction'
source files lib/mpp/tempo/transaction.ex
routines 'Elixir.MPP.Tempo.Transaction':cosign_fee_payer/3

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
E.FU 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:H/SC:N/SI:N/SA:N
« All CVEs