Highlights
Auth Bypass: 2 prior fixes. Scrutinize any change in this area.
lib/signet/oauth_2/client.rb: 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.
Auth Bypass: Flaws in JWT decoding, such as failing to supply a keyfinder verification block or neglecting explicit signature algorithm verification, allowed attackers to bypass token validation entirely. Developers must ensure all JWT.decode paths enforce algorithm constraints and block verification.
Timing Attack: Using standard non-constant-time string comparison operations (==) for validating 'oauth_signature' exposed OAuth 1.0 verification to remote timing side-channel attacks. High-security token and signature comparison must always utilize constant-time comparison helper functions.
Insecure Defaults: Globally overriding 'SSL_CERT_FILE' and 'SSL_CERT_DIR' using local or untrusted paths can compromise the integrity of secure TLS connections. Global configuration defaults must not inherit weak fallback paths.