Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

smartystreets/go-aws-auth
master @ 0c1422d
4
Fixes
0
CVEs
HIGH
Peak severity
50.0%
Coverage
Highlights
Auth Bypass: 2 prior fixes. Scrutinize any change in this area.
awsauth.go: most-fixed (4 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: A logic inversion in the expiration check caused credentials with explicit expiration times to be treated as permanently valid, potentially allowing the use of expired IAM/AWS credentials indefinitely. Additionally, improper bounds checking on credential slices could cause nil dereferences or signing failures.
Race Condition: The use of shared global variables for AWS keys and credentials allowed concurrent request-signing operations to overwrite active credentials, leading to requests being signed with incorrect client keys or failing altogether under high concurrency.