Business::GoCardless(Perl)に、署名検証前の処理でメモリを枯渇させられる脆弱性
Summary
Business::GoCardlessのバージョン1.01より前では、署名を検証する前にWebhookの内容を展開する処理があり、細工したリクエストを1件送るだけで、受信側のプロセスのメモリを使い果たされるおそれがあります。影響を受けるのは1.01より前のバージョンで、1.01で修正されています。1.01以上への更新をおすすめします。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Business::GoCardlessのバージョン1.01より前では、署名を検証する前にWebhookの内容を展開する処理があり、細工したリクエストを1件送るだけで、受信側のプロセスのメモリを使い果たされるおそれがあります。影響を受けるのは1.01より前のバージョンで、1.01で修正されています。1.01以上への更新をおすすめします。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| CPANBusiness-GoCardless |
< 1.01→ 1.01 |
1.01 |
Original description The description as published by the source.
Business::GoCardless versions before 1.01 for Perl allow memory exhaustion by flattening legacy webhook payloads before checking their signature.
A webhook body with a top-level "payload" key is verified as a legacy webhook. To rebuild the signed string, the payload is flattened into one key and value pair per leaf, each key carrying the full path to that leaf, and the pairs are then encoded, sorted and joined. A long key holding a long array costs memory proportional to the key length times the array length.
A remote attacker can exhaust memory in the process receiving webhooks with a single request that carries no valid signature.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- web metacpan.org
- web nvd.nist.gov
- web github.com