llamaCVEVulnerability Intelligence
/
Advisory · GitHub · Go · github.com/seaweedfs/seaweedfs

GHSA-8WR4-8F39-P7X2

Unauthenticated SSRF via non-s3 S3-compatible RemoteConf types bypasses the FetchAndWriteNeedle endpoint guard

Sin parche publicado
Descargar PNG JSON
CVSS 3.1
8.6
Alta
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L Fuente: GitHub
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
ParcheSin parcheEl fabricante no ha publicado corrección
Exposición11 dDesde la divulgación, 9 nov 2026, 2:46 p. m.
Detección10 dDesde la divulgación hasta su ingreso al índice
Decisión estimadaSeguir
Remediar en la ventana regular de mantenimiento
Estimación de Llama con el árbol SSVC de CISA a partir de vector CVSS 3.1 y la evidencia de explotación (sin evaluación oficial): sin explotación conocida, automatizable e impacto técnico parcial. No hay versión corregida: aplique mitigaciones.
Mis orejas detectan algo raro por aquí.Seguimiento de cerca: yo sé de mirar de cerca.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Monitoreo
Detectada +1
9 nov 26
20 nov 26
21 nov 26
9 nov 26
12 nov 26
15 nov 26
18 nov 26
21 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-8WR4-8F39-P7X2 divulgada · CVSS 8.6 (GitHub)
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

## Summary
`VolumeServer.FetchAndWriteNeedle` fetches a caller-supplied remote endpoint and writes the response body into a needle that can be read back — an SSRF-with-read-back primitive. CVE-2026-73080 / GHSA-87fv-vqqr-m4jr added SSRF endpoint validation (a deny-list plus a DNS-rebinding-safe pinned dialer), but wired it into a branch guarded on `remoteConf.Type == "s3"` only. SeaweedFS registers nine S3-SDK-backed remote-storage providers; the eight non-`s3` ones (`b2`, `storj`, `contabo`, `tencent`, `aliyun`, `wasabi`, `baidu`, `filebase`) fall through to the unguarded `else` branch and reach the identical S3 `GetObject` download sink with an attacker-supplied endpoint. The prior advisory's own text asserts that "other backends authenticate against their own SDKs and don't accept an attacker-controlled host" — that assertion is false for these eight S3-compatible providers, which is exactly the gap this report covers.

## Root Cause
`weed/server/volume_grpc_remote.go:234`:

if !vs.AllowUntrustedRemoteEndpoints && remoteConf != nil && remoteConf.Type == "s3" {
    // validateRemoteEndpoint + newGuardedHTTPClient (pinned dialer)
    client, getClientErr = s3remote.MakeWithHTTPClient(remoteConf, newGuardedHTTPClient(remoteConf.S3Endpoint))
} else {
    client, getClientErr = remote_storage.GetRemoteStorage(remoteConf)   // NO deny-list, default SDK dialer
}

The eight sibling makers live in `weed/remote_storage/s3/` and each set the AWS SDK `Endpoint` verbatim from an attacker-controlled `RemoteConf.*Endpoint` field, e.g. `weed/remote_storage/s3/wasabi.go:34` `Endpoint: aws.String(conf.WasabiEndpoint)`. They all build the same `s3RemoteStorageClient` (`client.conn = s3.New(sess)`) and converge on the same sink as the guarded `s3` maker. `remoteConf := req.RemoteConf` (line 230) is read directly from the gRPC request, so the endpoint and type are request-time attacker-controlled.

## Impact
Unauthenticated (default deployment) SSRF with response read-back: an attacker coerces the volume server into fetching an arbitrary internal URL (cloud IMDS 169.254.169.254, loopback, RFC1918) and recovers the response body via the stored needle. On cloud deployments this discloses instance metadata and IAM credentials and reaches otherwise-unexposed internal services — the same impact as CVE-2026-73080, reached through a `Type` value the fix omitted.

## Proof of Concept
Single unauthenticated gRPC `FetchAndWriteNeedle` call with an existing `VolumeId`, `RemoteConf{Type:"wasabi", WasabiAccessKey:"AKIAxxxx", WasabiSecretKey:"x", WasabiEndpoint:"http://169.254.169.254", Name:"<unique>"}`, `RemoteLocation{Bucket:"latest", Path:"/meta-data/iam/security-credentials/<role>"}`, and `Size` set to the expected response length; then read the needle back. No non-default config required. (Dummy static creds are supplied so SigV4 signing succeeds and the request is dispatched; IMDSv1 ignores the Authorization header.)

## Attack Chain
1. Entry — Unauthenticated gRPC caller invokes `VolumeServer.FetchAndWriteNeedle` (`volume_grpc_remote.go`) with a sibling-type `RemoteConf` and existing `VolumeId`.
- Guard: `checkGrpcAdminAuth` → peer-IP whitelist (`volume_grpc_admin.go:43`, `guard.go:132`).
- Bypass proof: default deployment has empty `guard.white_list` + empty signing key → `isWriteActive=false` → `IsWhiteListed` returns `true` for every peer (`guard.go:134`). Same default posture under which CVE-2026-73080 (GHSA-87fv-vqqr-m4jr) was accepted.
2. Volume precondition — supply a valid existing `VolumeId`.
- Guard: `v == nil` check (line 225-228).
- Bypass proof: volume IDs are small sequential integers disclosed by ungated `VolumeStatus`/master `/vol/status`. Identical to the precondition of CVE-2026-73080.
3. Branch routing — set `Type:"wasabi"` (or `b2`/`storj`/`contabo`/`tencent`/`aliyun`/`baidu`/`filebase`).
- Guard: `if !AllowUntrustedRemoteEndpoints && remoteConf != nil && remoteConf.Type == "s3"` (line 234) applying `validateRemoteEndpoint` + pinned dialer.
- Bypass proof: `"wasabi" != "s3"` → guarded block skipped, control reaches the `else` at line 248-249. The `-volume.allowUntrustedRemoteEndpoints` flag only ever affects the `s3` branch; sibling types are unvalidated regardless.
4. Client build — `remote_storage.GetRemoteStorage(remoteConf)` → `WasabiRemoteStorageMaker.Make`.
- Guard: none.
- Bypass proof: `wasabi.go:34` sets `Endpoint: aws.String(conf.WasabiEndpoint)` verbatim; default `net.Dialer`, no deny-list. Dummy static creds (`wasabi.go:39-41`) make SigV4 signing succeed.
5. Sink — `client.ReadFileWithConcurrency(loc, offset, size, ...)` (`volume_grpc_remote.go:266`).
- Guard: none.
- Bypass proof: `s3_storage_client.go:248` → `downloader.Download(GetObjectInput{...})` (path-style, `S3ForcePathStyle=true`) dials the literal internal address, no re-validation.
6. Read-back / Impact — fetched bytes stored as a needle (line 295), `resp.ETag` returned; needle re-read to recover the body.
- Guard: size-match check `int64(len(data)) != req.Size` (line 276).
- Bypass proof: attacker sets `req.Size` to the target length; IMDS credential documents have knowable sizes and the error path is a size oracle. Impact = IMDS credential theft / internal enumeration.

## Bypass Evidence
- `weed/server/volume_grpc_remote.go:234` guards only `Type == "s3"`; the `else` (248-249) calls `remote_storage.GetRemoteStorage(remoteConf)` with no deny-list and the SDK default dialer. `validateRemoteEndpoint`/`newGuardedHTTPClient` are unexported in `weed_server` and never called from `weed/remote_storage`.
- All 8 sibling makers register in `RemoteStorageClientMakers[...]` and set `aws.Config.Endpoint` verbatim from `conf.<X>Endpoint`; all build `&s3RemoteStorageClient{}` with `client.conn = s3.New(sess)` — same concrete client + same `s3manager.Download` sink as the guarded `s3` maker.
- Verified present on latest release tag `4.41` (guard at line 193, else at 208; `wasabi.go:34` present) and HEAD `9fd7075`. Only post-fix commit touching the file (`00c5572`) extends the guard *within* the `s3` branch and does not touch sibling types.
- The existing advisory GHSA-87fv-vqqr-m4jr explicitly states other backends "don't accept an attacker-controlled host" — false for these 8 S3-SDK providers, confirming the finding is outside the advisory's scope (incomplete-fix bypass, not duplicate).

## Affected Versions
Incomplete-fix variant: from the version that introduced the `Type=="s3"`-gated guard (the CVE-2026-73080 fix, released 4.24) through the latest release `4.41` and HEAD. Vulnerable range: `>= 4.24, <= 4.41`.

## Suggested Fix
Apply the endpoint deny-list and pinned/rebinding-safe dialer to ALL S3-SDK-backed provider types, not just `Type=="s3"`. Either move `validateRemoteEndpoint` + guarded HTTP client into the shared `s3RemoteStorageClient` construction path used by every S3-compatible maker, or gate on the client family (any maker that dials a caller-supplied `*Endpoint`) rather than the literal string `"s3"`.

---
Reported by zx (Jace) — GitHub: @manus-use

Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.

Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · GitHub
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:H
AltoBajoNinguno
IntegridadI:L
AltoBajoNinguno
DisponibilidadA:L
AltoBajoNinguno
Score de explotaciónQué tan fácil y probable es que la exploten
10.0/ 10Muy alto
Vector 10.0 (muy fácil) · sin evidencia de explotación.
Versiones

Rangos afectados

Afectada Corregida
github.com/seaweedfs/seaweedfs≥ 4.24 ≤ 4.41
4.24
4.41
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
Gogithub.com/seaweedfs/seaweedfs
Sin parche — — —
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://github.com/seaweedfs/seaweedfs/security/advisories/GHSA-8wr4-8f39-p7x2

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.