Report
CVE-2021-31879: Wget leaks Authorization header on cross-origin redirect
d1811cf2-ff37-4e92-9b61-e147f8690520
GNU Wget <= 1.21 does not strip the Authorization header (or equivalent credential material derived from --user/--password/--http-user/--http-password/.netrc) when an HTTP redirect points to a different origin than the originally requested URL. A malicious or compromised intermediate server can therefore harvest the user's Basic credentials by responding with a 30x Location: https://attacker.example/.