CVE-2024-28849: Follow Redirects Proxy Auth Leak

The code strips 'authorization' headers to prevent credential leaks, but explicitly fails to strip 'proxy-authorization'. This can lead to proxy authentication credentials being leaked to untrusted third-party endpoints during cross-domain HTTP redirects. Ensure 'proxy-authorization' is also included in the target pool of sensitive headers to strip.

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0JS
greprules fetch cve-2024-28849-follow-redirects-proxy-auth-leak --engine opengrep

Description

The code strips 'authorization' headers to prevent credential leaks, but explicitly fails to strip 'proxy-authorization'. This can lead to proxy authentication credentials being leaked to untrusted third-party endpoints during cross-domain HTTP redirects. Ensure 'proxy-authorization' is also included in the target pool of sensitive headers to strip.