The API-host-only credential guarantee is contradicted by automatic redirects that retain Authorization.
- Category
- Excessive Agency
- Confidence
- 99% confidence
- Finding
The code checks the initial URL before attaching Authorization, but urllib's default redirect handler can forward that header to a different origin. If an authenticated API request receives an attacker-controlled redirect, the API key can reach the redirect destination, contradicting the claimed API-host-only credential boundary and potentially enabling unauthorized account usage.
- Content
