Business::GoCardless before 1.01 has three Perl webhook flaws
Empty webhook secrets accept forgeries, and unsigned legacy payloads can exhaust memory before verification.
Missing session check in Perl Business::GoCardless before 1.01
Business::GoCardless for Perl completes GoCardless redirect flows without checking that the caller holds the session token that started the flow. confirm_resource ignores any caller token, reloads the flow from the API, and treats the API token as proof of ownership, then creates a payment or subscription on that flow's mandate. Since 1.00, a flow that already has a mandate is returned as confirmed, so the same ID can create a new payment on every call. A remote attacker who obtains another customer's redirect flow ID can charge that customer's mandate. Versions before 1.01 are affected.
What to do: Upgrade Business::GoCardless to 1.01.
| Product | Affected | Fixed in |
|---|---|---|
| Business::GoCardless for Perl | before 1.01 | 1.01 |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
Business::GoCardless versions before 1.01 for Perl complete redirect flows without checking the session token, letting a leaked redirect flow ID create payments against another customer's mandate. confirm_resource takes no session token from the caller. It reads the redirect flow back from the GoCardless API and completes it with the token from that response, so the check that the flow is completed by the session that started it always passes. It then creates the requested payment or subscription against the flow's mandate. Since version 1.00, a flow that already has a mandate is returned as confirmed without being completed again, so the same ID creates a new payment on every call. A remote attacker who obtains another customer's redirect flow ID can create payments or subscriptions against that customer's mandate.
Empty webhook secrets accept forgeries, and unsigned legacy payloads can exhaust memory before verification.
Today 2.1K readers · 11K views · 8.3K reads · all time 157K views