GHSA-h4mf-4v27-hggj: rclone: WebDAV Credentials Survive a Same-Host HTTPS-to-HTTP Redirect
1. Summary WebDAV'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.
Published Aug 5, 2026
Affected packages
github.com/rclone/rclone
- Ecosystem
- Go
- Affected
- <= 1.74.0
- Fixed in
- 1.75.0
- Check
go list -m github.com/rclone/rclone
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
1. Summary
WebDAV'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.
The 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.
2. Affected Assets & Attack Surface
- Backend configuration/authentication:
backend/webdav/webdav.go:127-139,170-206,440-530 - Shared redirect callback:
lib/rest/rest.go:218-231 - HTTP client:
fs/fshttp/http.go:311-329 - Credentials: Basic passwords, bearer authorization, SharePoint/session cookies, and configured secret headers
- Confirmed affected version:
<= v1.74.0-240
3. Technical Root Cause Analysis
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.
4. Proof-of-Concept & Evidence
- Configure the actual WebDAV backend with Basic credentials and a Cookie.
- Have the TLS endpoint return
307 Temporary Redirectto an HTTP listener on the same hostname and a different port. - rclone follows the redirect while preserving the WebDAV method.
- The plaintext listener receives both the Basic
Authorizationvalue and Cookie.
5. Impact Assessment
An 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.
6. Remediation Guidance
- Reject every HTTPS-to-HTTP redirect before replay.
- Forward authenticated requests by default only when scheme, hostname, and effective port are unchanged.
- Strip authorization, cookies, proxy credentials, and configured secret headers on all other redirects.
- Put necessary provider exceptions behind exact destination allowlists.
- Cover
301,302,303,307, and308in regression tests.
Credited to cyberlanc3r, ncw.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2026-88013
rclone: http backend forwards custom/auth headers to a different host on redirect
low3.7Sep 10, 2026CVE-2026-88014
rclone archive/zip: Zip Slip via unsanitized zip entry names lets a malicious archive escape its own namespace
medium6.3Sep 10, 2026CVE-2026-88015
rclone local: crafted Range request against a translated symlink panics (DoS)
medium5.3Sep 10, 2026CVE-2026-88016
rclone: Directory metadata (chmod/chown/chtimes) applied through a planted symlink in rclone local --links escapes the destination
medium6.5Sep 10, 2026CVE-2026-88017
rclone: FTP cross-session auth-proxy backend confusion
high7.3Sep 10, 2026CVE-2026-88018
rclone serve s3: --auth-proxy without --auth-key authenticates nobody - full SigV4 signature bypass
critical9.8Sep 10, 2026
