mirror of
https://github.com/rclone/rclone.git
synced 2026-09-14 07:14:20 -04:00
A server that redirects an HTTPS request to a plaintext HTTP URL on the same host would cause Go's http.Client to replay the configured credentials (Basic Authorization, cookies, secret headers) over the network in cleartext. Refuse to follow such downgrade redirects by default in lib/rest and wire the webdav backend's client to use it. The `auth_redirect` option remains the opt-in escape hatch for servers that legitimately need auth preserved across redirects. Fixes GHSA-h4mf-4v27-hggj