rclone: S3 Redirect Sanitization Omits IBM IAM Bearer Tokens and SSE-C Keys
## 1. Summary The S3 redirect callback strips `X-Amz-Security-Token` when a redirect changes scheme or host, but it does not strip IBM IAM bearer authorization or customer-provided encryption keys. Two independently validated paths remain: - a same-host HTTPS-to-HTTP redirect preserves `Authorization: Bearer ...` and exposes a reusable IBM IAM token to the plaintext network path; - a cross-origin redirect preserves SSE-C and copy-source SSE-C key headers. The High rating is driven by the reusable IBM IAM bearer token. The SSE-C cross-origin disclosure is a secondary confidentiality issue. The meaningful threat is a trusted endpoint, gateway, or accelerator that emits an unsafe redirect, followed by an adjacent/on-path observer; describing the originally configured endpoint itself as the attacker would be weak because that endpoint already receives the request secrets. ## 2. Affected Assets & Attack Surface - S3 redirect policy: `backend/s3/s3.go:1345-1379` - IBM IAM signer: `backend/s3/ibm_signer.go:28-40` - SSE-C key preparation: `backend/s3/s3.go:1821-1837` - Affected operations: requests carrying IBM IAM authorization, SSE-C keys, or copy-source SSE-C keys - Confirmed affected version: `<= v1.74.0-240-ga0c09f138` ## 3. Technical Root Cause Analysis `s3CheckRedirect` applies a one-header denylist: ```go if s3RedirectCrossesHost(req, via) { req.Header.Del("X-Amz-Security-Token") } ``` Go removes `Authorization` on some hostname changes, but preserves it for a same-host redir
GHSA-8mxv-9xhp-86h4
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: osv:GHSA-8mxv-9xhp-86h4
github.com/rclone/rclone
Source reference: /affected/0/package/name
- Affected versions
- Not stated in this record
- Fixed versions
- 1.75.0
Source reference:
/affected/0/ranges - Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.75.0"
}
]
}
],
"package": {
"name": "github.com/rclone/rclone",
"purl": "pkg:golang/github.com/rclone/rclone",
"ecosystem": "Go"
},
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/08/GHSA-8mxv-9xhp-86h4/GHSA-8mxv-9xhp-86h4.json",
"last_known_affected_version_range": "<= 1.74.0"
}
}
]- Related CVEs
- CVE-2026-79780
Source reference:
/aliases
Publisher severity
No explicit severity was provided.
- Event
- #15263 · Revision 1
- Added to Heist Feed
- Publisher date
GO-2026-6188
Revision 1
S3 redirect sanitization omits sensitive headers in github.com/rclone/rclone
S3 redirect sanitization omits sensitive headers in github.com/rclone/rclone
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: osv:GO-2026-6188
github.com/rclone/rclone
Source reference: /affected/0/package/name
- Affected versions
- Not stated in this record
- Fixed versions
- 1.75.0
Source reference:
/affected/0/ranges - Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.75.0"
}
]
}
],
"package": {
"name": "github.com/rclone/rclone",
"purl": "pkg:golang/github.com/rclone/rclone",
"ecosystem": "Go"
},
"database_specific": {
"source": "https://vuln.go.dev/ID/GO-2026-6188.json"
},
"ecosystem_specific": {
"imports": [
{
"path": "github.com/rclone/rclone/backend/s3",
"symbols": [
"Fs.CleanUp",
"Fs.CleanUpHidden",
"Fs.Command",
"Fs.Copy",
"Fs.List",
"Fs.ListP",
"Fs.ListR",
"Fs.Mkdir",
"Fs.NewObject",
"Fs.OpenChunkWriter",
"Fs.PublicLink",
"Fs.Purge",
"Fs.Put",
"Fs.PutStream",
"Fs.Rmdir",
"Fs.String",
"IbmIamSigner.SignHTTP",
"NewFs",
"Object.Hash",
"Object.Metadata",
"Object.MimeType",
"Object.ModTime",
"Object.Open",
"Object.Remove",
"Object.SetModTime",
"Object.SetTier",
"Object.Update",
"s3CheckRedirect",
"s3ChunkWriter.Abort",
"s3ChunkWriter.Close",
"s3ChunkWriter.WriteChunk",
"s3logger.Logf",
"setEndpointValueForIDriveE2",
"v1List.List",
"v2List.List",
"v2Signer.SignHTTP",
"versionsList.List"
]
}
]
}
}
]- Related CVEs
- CVE-2026-79780
Source reference:
/aliases
Publisher severity
No explicit severity was provided.
- Event
- #15264 · Revision 1
- Added to Heist Feed
- Publisher date