{"id":"DHI-vbzr-kc7v-ozee-d2vi","summary":"## 1. Summary","details":"## 1. Summary\n\nWebDAV's default redirect handling can replay Basic authorization and configured Cookie headers over plaintext HTTP after a same-host HTTPS-to-HTTP redirect. This was reproduced through the real backend. Unlike the low-impact STS token in rclone's published S3 redirect advisory, Basic passwords and session cookies are complete reusable credentials, supporting a High rating when they grant normal WebDAV read/write access.\n\nThe credible threat requires a legitimate endpoint, gateway, or accelerator to emit an unsafe redirect and an adjacent/on-path actor to observe the plaintext hop. A report should not rely on a malicious original WebDAV endpoint because that endpoint already receives the credentials.\n\n## 2. Affected Assets & Attack Surface\n\n- Backend configuration/authentication: `backend/webdav/webdav.go:127-139`, `170-206`, `440-530`\n- Shared redirect callback: `lib/rest/rest.go:218-231`\n- HTTP client: `fs/fshttp/http.go:311-329`\n- Credentials: Basic passwords, bearer authorization, SharePoint/session cookies, and configured secret headers\n- Confirmed affected version: `\u003c= v1.74.0-240`\n\n## 3. Technical Root Cause Analysis\n\n`PreserveMethodRedirectFn` limits redirect count and restores the original method, but it does not reject a transport downgrade or compare the full origin tuple. The client therefore relies on Go's hostname-oriented sensitive-header forwarding rules. Those rules can preserve `Authorization` and Cookie on a same-host redirect even when the new scheme is plaintext HTTP.\n\n## 4. Proof-of-Concept & Evidence\n\n1. Configure the actual WebDAV backend with Basic credentials and a Cookie.\n2. Have the TLS endpoint return `307 Temporary Redirect` to an HTTP listener on the same hostname and a different port.\n3. rclone follows the redirect while preserving the WebDAV method.\n4. The plaintext listener receives both the Basic `Authorization` value and Cookie.\n\n## 5. Impact Assessment\n\nAn on-path observer can reuse the captured password, bearer token, or session cookie for the account's permitted WebDAV operations. Confidentiality, integrity, and availability impact depend on that account's permissions.\n\n## 6. Remediation Guidance\n\n- Reject every HTTPS-to-HTTP redirect before replay.\n- Forward authenticated requests by default only when scheme, hostname, and effective port are unchanged.\n- Strip authorization, cookies, proxy credentials, and configured secret headers on all other redirects.\n- Put necessary provider exceptions behind exact destination allowlists.\n- Cover `301`, `302`, `303`, `307`, and `308` in regression tests.","modified":"2026-11-20T17:45:16.320773074Z","published":"2026-11-13T19:15:46Z","upstream":["GHSA-h4mf-4v27-hggj"],"references":[{"type":"ADVISORY","url":"https://scout.docker.com/v/DHI-vbzr-kc7v-ozee-d2vi"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-h4mf-4v27-hggj"},{"type":"ADVISORY","url":"https://github.com/rclone/rclone/security/advisories/GHSA-h4mf-4v27-hggj"},{"type":"FIX","url":"https://github.com/rclone/rclone/commit/59b513b0e74fd2943ccbb8891d5ce00f860e6d26"},{"type":"WEB","url":"https://github.com/rclone/rclone/releases/tag/v1.75.0"},{"type":"ADVISORY","url":"https://pkg.go.dev/vuln/GO-2026-6197"}],"affected":[{"package":{"name":"telegraf-dev","ecosystem":"Docker Hardened Images:Alpine:3.24","purl":"pkg:apk/dhi/telegraf-dev"},"versions":["1.39.1-r0","1.39.2-r0","1.39.3-r0","1.39.3-r1","1.39.3-r2","1.39.3-r3","1.39.3-r4","1.39.3-r5","1.39.3-r6","1.40.0-r0","1.40.0-r1","1.40.1-r0","1.40.1-r1","1.40.1-r2","1.40.2-r0","1.40.2-r1","1.40.2-r2","1.40.2-r3","1.40.3-r0","1.40.3-r1","1.40.3-r2","1.40.3-r3"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-vbzr-kc7v-ozee-d2vi.json"}},{"package":{"name":"telegraf-fips-dev","ecosystem":"Docker Hardened Images:Alpine:3.24","purl":"pkg:apk/dhi/telegraf-fips-dev"},"versions":["1.39.1-r0","1.39.2-r0","1.39.3-r0","1.39.3-r1","1.39.3-r2","1.39.3-r3","1.39.3-r4","1.39.3-r5","1.39.3-r6","1.40.0-r0","1.40.0-r1","1.40.1-r0","1.40.1-r1","1.40.1-r2","1.40.2-r0","1.40.2-r1","1.40.2-r2","1.40.2-r3","1.40.3-r0","1.40.3-r1","1.40.3-r2","1.40.3-r3"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-vbzr-kc7v-ozee-d2vi.json"}},{"package":{"name":"telegraf-fips","ecosystem":"Docker Hardened Images:Alpine:3.24","purl":"pkg:apk/dhi/telegraf-fips"},"versions":["1.39.1-r0","1.39.2-r0","1.39.3-r0","1.39.3-r1","1.39.3-r2","1.39.3-r3","1.39.3-r4","1.39.3-r5","1.39.3-r6","1.40.0-r0","1.40.0-r1","1.40.1-r0","1.40.1-r1","1.40.1-r2","1.40.2-r0","1.40.2-r1","1.40.2-r2","1.40.2-r3","1.40.3-r0","1.40.3-r1","1.40.3-r2","1.40.3-r3"],"database_specific":{"source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-vbzr-kc7v-ozee-d2vi.json","owner_kind":"HSP"}},{"package":{"name":"telegraf","ecosystem":"Docker Hardened Images:Alpine:3.24","purl":"pkg:apk/dhi/telegraf"},"versions":["1.39.1-r0","1.39.2-r0","1.39.3-r0","1.39.3-r1","1.39.3-r2","1.39.3-r3","1.39.3-r4","1.39.3-r5","1.39.3-r6","1.40.0-r0","1.40.0-r1","1.40.1-r0","1.40.1-r1","1.40.1-r2","1.40.2-r0","1.40.2-r1","1.40.2-r2","1.40.2-r3","1.40.3-r0","1.40.3-r1","1.40.3-r2","1.40.3-r3"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-vbzr-kc7v-ozee-d2vi.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N"}]}