Highlights
Auth Bypass: 3 prior fixes. Scrutinize any change in this area.
lib/Braintree/OAuthGateway.php: most-fixed (2 issues). Treat as high-risk during review.
2 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns
The bug types that recur here, drawn from past fixes, not open vulnerabilities.
Broken Cryptography: The PHP cURL client historically disabled or omitted SSL peer and host verification, creating a severe susceptibility to Man-in-the-Middle (MitM) attacks during gateway API interactions. This must be prevented by permanently enforcing strict TLS verification options.
Auth Bypass: Processing unverified webhook payloads allows attackers to forge notification data and bypass authentication. Signature verification must always happen before any XML or array parsing of incoming webhook notifications occurs.
Auth Bypass: OAuth redirect and connection URLs were initially vulnerable to parameter tampering due to missing or weak signatures, potentially allowing authorization bypasses. Secure HMAC generation based on client secrets using strong hash functions like SHA-256 is required.