Highlights
Auth Bypass: 1 prior fix. Scrutinize any change in this area.
braintree/address_gateway.py: most-fixed (1 issue). 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.
Path Traversal: The SDK's underlying HTTP client was vulnerable to path traversal because it did not correctly prevent dot-segment manipulation prior to dispatching requests. This allowed callers to potentially escape designated API paths. Developers must ensure URL paths constructed for the HTTP client are explicitly absolute or rely on safe prepared request attributes.
Auth Bypass: Inadequate format validation on customer and address identifiers allowed directory traversal or dot-notation injection. Attackers could bypass authorization boundaries to access or mutate unauthorized customer records. Rigid regex validation on path identifiers must be enforced on all gateway endpoints.