Security context

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

awslabs/aws-api-gateway-developer-portal
main @ 1034786
5
Fixes
0
CVEs
HIGH
Peak severity
80.0%
Coverage
Highlights
Improper Access Control: 2 prior fixes. Scrutinize any change in this area.
cloudformation/template.yaml: most-fixed (3 issues). Treat as high-risk during review.
5 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.

Security Misconfiguration: S3 getObject/upload calls without ExpectedBucketOwner allow bucket sniping, where a malicious bucket with the same name can be substituted. This affects multiple admin catalog routes and a shared utility, indicating a systemic lack of ownership validation.
Improper Access Control: S3 buckets lacked PublicAccessBlockConfiguration, allowing public ACLs and policies that could expose data. This is a foundational misconfiguration affecting all buckets defined in the template.
Auth Bypass: API calls were made before the auth token was ready, allowing unauthorized access to backend methods. The fix waits for the token, but any other client-side service could repeat this pattern.