mpp vulnerable to Gas Draining with no limit
### Details When the server acts as the fee_payer, the `mpp` Elixir 0.4.0 does not validate `gas_limit`, `max_fee_per_gas` and `max_priority_fee_per_gas` before cosigning the client's fee-payer transaction. A malicious client embeds arbitrarily large `max_fee_per_gas` and `max_priority_fee_per_gas` values in the signed envelope. The server cosigns and broadcasts — paying those inflated gas costs from its own wallet based on the `effective_gas_price` calculated from the high `max_fee_per_gas` and `max_priority_fee_per_gas` set by the client. **Vulnerable function:** `cosign_fee_payer/3` in [`transaction.ex`](https://hex.pm/packages/mpp/0.4.0) around lines 229–262. ### PoC The PoC is provided below. It is configured to reproduce the attack on Tempo Moderate testnet within a Docker environment. Download the PoC and run: ```bash unzip mpp_elixir_PoC.zip cd mpp_elixir docker build -t mpp-elixir-gasdrain . docker run --rm mpp-elixir-gasdrain ``` There are more details in `mpp_elixir/README.md` ### Impact By draining the server's wallet, an attacker causes direct financial loss to the organization. Furthermore, if the server's funds are drained completely, legitimate clients will have their requests fail, as the server can no longer fund future transactions, effectively creating a Denial of Service (DoS) attack.
GHSA-vv77-66rf-pm86
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: osv:GHSA-vv77-66rf-pm86
mpp
Source reference: /affected/0/package/name
- Affected versions
- 0.2.0
Source reference:
/affected/0/versions0.3.0Source reference:
/affected/0/versions0.3.1Source reference:
/affected/0/versions0.3.2Source reference:
/affected/0/versions0.4.0Source reference:
/affected/0/versions - Fixed versions
- 0.6.0
Source reference:
/affected/0/ranges - Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0.2.0"
},
{
"fixed": "0.6.0"
}
]
}
],
"package": {
"name": "mpp",
"purl": "pkg:hex/mpp",
"ecosystem": "Hex"
},
"versions": [
"0.2.0",
"0.3.0",
"0.3.1",
"0.3.2",
"0.4.0"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-vv77-66rf-pm86/GHSA-vv77-66rf-pm86.json"
}
}
]- Related CVEs
- CVE-2026-59695
Source reference:
/aliases
Publisher severity
high
Source reference: /database_specific/severity
- Event
- #18116 · Revision 1
- Added to Heist Feed
- Publisher date