Description
gopay before 1.5.119 disables TLS certificate verification in defaultClient() in pkg/xhttp/client.go, allowing man-in-the-middle attackers to impersonate payment provider APIs. Attackers can present any certificate to read merchant credentials, signatures and transaction data, and modify payment, refund and order query responses.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| go-pay | gopay | < 1.5.119 | 1.5.119 |
References
- GitHub Issue #540 issue-tracking
- https://github.com/go-pay/gopay/commit/f6df04fd4f64a2ad2c303ba063b6502bfdd259fd patch
- https://github.com/go-pay/gopay/blob/v1.5.118/pkg/xhttp/client.go#L15-L37 technical-description
- https://github.com/go-pay/gopay product
- VulnCheck Advisory: gopay before 1.5.119 Disabled TLS Certificate Verification in xhttp Client third-party-advisory