{"id":"CVE-2026-79779","aliases":["CVE-2026-79779","GHSA-h4mf-4v27-hggj","BIT-RCLONE-2026-79779","GO-2026-6197"],"related":[],"kind":"vulnerability","state":"published","title":"rclone before v1.75.0 WebDAV Credential Exposure via HTTPS-to-HTTP Redirect","summary":"rclone versions before v1.75.0 fail to reject transport downgrades in redirect handling, allowing Basic authorization and Cookie headers to be replayed over plaintext HTTP after same-host HTTPS-to-HTTP redirects. An on-path attacker observing the plaintext hop can capture and reuse credentials to perform WebDAV operations with the compromised account's permissions.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"rclone versions before v1.75.0 fail to reject transport downgrades in redirect handling, allowing Basic authorization and Cookie headers to be replayed over plaintext HTTP after same-host HTTPS-to-HTTP redirects. An on-path attacker observing the plaintext hop can capture and reuse credentials to perform WebDAV operations with the compromised account's permissions.","source":"cvelist"},{"lang":"en","text":"## 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: `<= 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.","format":"markdown","source":"ghsa"},{"lang":"en","text":"WebDAV credential leakage on HTTPS to HTTP redirect in github.com/rclone/rclone","format":"markdown","source":"go"}],"published":"2026-08-05T20:36:10.000Z","modified":"2026-09-25T14:25:56.710Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:A/AC:H/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","score":6,"rating":"MEDIUM"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:A/AC:H/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","score":6,"rating":"MEDIUM"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-319","CWE-522"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"1.75.0","status":"affected"},{"type":"semver","version":"1.75.0","status":"unaffected"}],"vendor":"rclone","product":"rclone","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.75.0"}],"ecosystem":"Go","package":"github.com/rclone/rclone","purl":"pkg:golang/github.com/rclone/rclone","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.75.0"}],"ecosystem":"Go","package":"github.com/rclone/rclone","purl":"pkg:golang/github.com/rclone/rclone","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.75.0"}],"ecosystem":"Bitnami","package":"rclone","purl":"pkg:bitnami/rclone","source":"bitnami"}],"references":[{"url":"https://github.com/rclone/rclone/security/advisories/GHSA-h4mf-4v27-hggj","tags":["advisory","vendor-advisory","web"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://www.vulncheck.com/advisories/rclone-before-webdav-credential-exposure-via-https-to-http-redirect","tags":["third-party-advisory","web"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/rclone/rclone/commit/59b513b0e74fd2943ccbb8891d5ce00f860e6d26","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/rclone/rclone","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/rclone/rclone/releases/tag/v1.75.0","tags":["web"],"sources":["ghsa","go"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-79779","tags":["web"],"sources":["bitnami"]}],"credits":["cyberlanc3r","ncw"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-08-27T16:12:32.850Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-79779","url":"https://www.cve.org/CVERecord?id=CVE-2026-79779","licence":"CVE Terms of Use","modified":"2026-08-27T16:45:55.566Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-h4mf-4v27-hggj","url":"https://github.com/advisories/GHSA-h4mf-4v27-hggj","licence":"CC-BY-4.0","modified":"2026-09-25T14:25:56.710Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-6197","url":"https://pkg.go.dev/vuln/GO-2026-6197","licence":"CC-BY-4.0","modified":"2026-09-25T14:25:56.710Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-79779","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-79779","licence":"Public domain","modified":"2026-09-10T20:46:19.780Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-RCLONE-2026-79779","url":"https://osv.dev/vulnerability/BIT-RCLONE-2026-79779","licence":"Apache-2.0","modified":"2026-09-25T14:25:56.710Z"}],"updatedAt":"2026-11-25T22:59:35.179Z","epss":{"score":0.00108,"percentile":0.01296,"date":"2026-12-01T12:00:22.000Z"}}