Automatic redirects can send the API key outside the API host, contradicting the documented credential restriction.
- Category
- Excessive Agency
- Confidence
- 99% confidence
- Finding
The initial URL is checked before attaching Authorization, but urllib's default redirect handling can forward that header to a different host or an HTTP destination. If an authenticated API endpoint returns an attacker-controlled redirect, the API key can leak despite the stated API-host restriction; both API calls and authenticated downloads use this opener.
- Content
