Business::GoCardless for Perlで偽のWebhookを受け入れてしまう脆弱性
Summary
Business::GoCardless for Perlの1.01より前のバージョンは、Webhookの署名検証に使う秘密鍵が未定義または空の場合に、偽のWebhookを受け入れてしまいます。遠隔の攻撃者が空の鍵で署名した偽装通知を、GoCardlessから送られたものとして受理させられる可能性があります。対策として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 for Perlの1.01より前のバージョンは、Webhookの署名検証に使う秘密鍵が未定義または空の場合に、偽のWebhookを受け入れてしまいます。遠隔の攻撃者が空の鍵で署名した偽装通知を、GoCardlessから送られたものとして受理させられる可能性があります。対策として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 accept forged webhooks when a configured webhook secret is undef or empty.
signature_valid uses each configured secret as the HMAC key, and nothing rejects undef or an empty string, both of which Digest::SHA treats as an empty key. A secret read from an unset environment variable, or an empty entry in a list of rotated secrets, is used as is.
A remote attacker can sign a forged webhook with an empty key and have it accepted as sent by GoCardless.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- web metacpan.org
- web nvd.nist.gov
- web github.com