Cloud Metadata Access
- Category
- Server-Side Request Forgery
- Confidence
- 90% confidence
- Finding
Code accesses a cloud instance metadata endpoint (e.g. 169.254.169.254). A single request can return temporary IAM credentials, making this a high-value SSRF target for credential theft.
- Content
md Host patterns are exact match (`bucket.s3.amazonaws.com`) or single-wildcard subdomain (`*.s3.amazonaws.com`, matches any `<x>.s3.amazonaws.com` but NOT `s3.amazonaws.com` itself). Always-on protections regardless of mode: - DNS-resolved private / loopback / link-local / metadata-service IPs (`169.254.169.254`) rejected unless `AUDIOLLA_FETCH_ALLOW_PRIVATE=true` - Only schemes in `AUDIOLLA_FETCH_SCHEMES` accepted; `file://`, `gopher://`, etc. always rejected - Each redirect's `Location` re-validated through the full policy before following - Body streamed; abort if it exceeds `AUDIOLLA_MAX_UPLOAD_BYTES`
