CVE-2026-71495 CRITICAL 10.0 난이도Difficulty 입문Intro

Wanderer 트레일 다운로드 엔드포인트의 인증 없는 SSRFUnauthenticated SSRF in Wanderer's trail download endpoint

공식 참조Official references: NVDCVE.org

CVE-2026-71495는 Wanderer의 Server-Side Request Forgery (SSRF)(CWE-918) 취약점으로, CVSS 10(CRITICAL)입니다. 영향 버전: < 0.20.0. 수정 버전: 0.20.0.CVE-2026-71495 is a Server-Side Request Forgery (SSRF) (CWE-918) vulnerability in Wanderer, rated CVSS 10 (CRITICAL). Affected: < 0.20.0. Fixed in: 0.20.0.

제품Product Wanderer
영향 버전Affected < 0.20.0
수정 버전Fixed in 0.20.0
심각도Severity CVSS 10 CRITICAL
취약점 유형Weakness CWE-918 Server-Side Request Forgery (SSRF)
공격 조건Attack conditions 원격 (네트워크) · 인증 불필요 · 사용자 상호작용 불필요Remote (network) · No authentication · No user interaction

1. TL;DR

Wanderer는 셀프 호스팅 트레일 데이터베이스입니다. 0.20.0 이전 버전에서 PUBLIC_PRIVATE_INSTANCE가 true로 설정되지 않은 경우, 인증이 필요 없는 POST /api/v1/trail/download 핸들러는 공격자가 제어하는 JSON url 필드를 그대로 event.fetch()에 전달하고 가져온 응답을 반환합니다. 따라서 서버는 요청하는 누구에게나 웹 요청을 대신 보내 주고 그 결과를 돌려줍니다. 여기에는 서버만 접근할 수 있는 호스트로 가는 요청도 포함됩니다. 이를 통해 db:8090, search:7700 같은 내부 서비스, 클라우드 메타데이터 주소, 그 밖의 네트워크 대상에 대한 요청이 가능해집니다. 수정은 v0.20.0에 포함되었습니다.

2. Flaw 분류

항목값
주요 CWECWE-918, Server-Side Request Forgery (NVD와 GitHub 권고문이 일치)
공격 벡터네트워크. 공격자는 공개 API 경로로 HTTP POST를 보냅니다. CVSS: AV:N/AC:L/PR:N/UI:N
영향기밀성 High, 가용성 High, 무결성 None, Scope Changed (CVSS 10.0). NVD 설명은 반환 데이터 노출, 내부 네트워크 정찰, 서비스 거부를 나열합니다.
선행 조건0.20.0보다 오래된 Wanderer이며 PUBLIC_PRIVATE_INSTANCE가 “true”로 설정되지 않은 상태. 계정은 필요 없습니다.
영향받는 버전0.20.0 미만 버전. VulDB는 이를 “up to 0.19.x”로 표현합니다.
수정 버전0.20.0

3. 근본 원인

SSRF는 서버가 클라이언트가 고른 URL을 가져오면서 그 URL이 어디를 가리키는지 검사하지 않을 때 발생합니다. 여기서는 두 가지 설계 실수가 결합되어 있습니다.

  1. 대상이 전적으로 클라이언트 제어下에 있습니다. web/src/routes/api/v1/trail/download/+server.ts의 POST 핸들러는 url 필드가 담긴 JSON 본문을 받습니다. 이 값은 검증 없이 서버 측 event.fetch() 호출로 전달됩니다. 권고문은 해당 파일의 37-54번째 줄을 지목합니다.
  2. 응답이 호출자에게 반환됩니다. 핸들러는 가져온 응답을 요청자에게 돌려줍니다. 이 때문에 블라인드 요청이 완전한 읽기 프리미티브로 바뀝니다. 공격자는 내부 서비스가 무엇이라고 응답했는지 볼 수 있습니다.

또한 핸들러는 기본적으로 인증이 없습니다. 권고문은 PUBLIC_PRIVATE_INSTANCE가 “true”로 설정되지 않은 한 인증되지 않은 사용자가 이 엔드포인트에 접근할 수 있다고 설명합니다.

일반적인 SSRF의 위험은 서버의 네트워크상 위치에서 비롯됩니다. 일반적인 Docker 배포에서 웹 컨테이너는 인터넷에 공개되지 않은 백엔드와 통신할 수 있습니다. 권고문은 이러한 서비스가 외부에 노출되지는 않지만 웹 컨테이너에서는 접근 가능하다고 언급합니다. NVD 설명에는 데이터베이스 서비스(db, 포트 8090)와 검색 서비스(search, 포트 7700)가 명시되어 있습니다. 요청이 신뢰 경계 안쪽에서 나오기 때문에 네트워크 수준 보호로는 이를 막지 못합니다.

4. 익스플로잇 흐름(개념)

  1. 인스턴스 찾기. 공격자는 비공개 인스턴스 모드가 아닌 Wanderer 배포를 찾습니다.
  2. 요청 전송. 공격자는 인증이 필요 없는 다운로드 경로로 JSON 본문을 보냅니다. url 필드에는 트레일 파일 대신 내부 대상이 지정됩니다.
  3. 서버 측 fetch. 웹 애플리케이션이 자신의 네트워크 위치에서 해당 대상을 가져옵니다.
  4. 응답 반사. 핸들러가 가져온 응답을 공격자에게 반환합니다.
  5. 반복. 공격자는 대상을 바꿔 가며 내부 호스트명, 포트, 서비스를 파악합니다. 각 응답 또는 응답이 없다는 사실이 내부 네트워크에 대한 단서가 됩니다.
  1. 공격자가 url 제공 — 인증 없는 JSON 필드
  2. 서버가 대상을 fetch — 네트워크 내부에서
  3. 응답이 호출자에게 반환
  4. 내부 데이터 노출 / 정찰 / DoS
개념 흐름도 — 실행 가능한 페이로드가 아닙니다

공격자가 얻을 수 있는 것

권고문은 여러 용도 중에서도 내부 Meilisearch 서비스와 내부 PocketBase API를 탐색할 수 있다고 나열합니다. 권고문의 두 가지 예시 탐색은 상태 확인(health-status) 엔드포인트이므로, 여기서 입증된 영향은 정보 노출입니다. 클라우드 메타데이터 엔드포인트는 NVD 설명에 명시되어 있습니다. 이런 엔드포인트가 존재하는 환경에서는 자격 증명이 들어 있을 수 있지만, 이는 배포 환경에 따라 다르며 Wanderer에 대해 구체적으로 확인되지는 않았습니다. 서비스 거부 측면은 NVD 문구에서 나온 것이며, 공개된 출처는 그 메커니즘을 설명하지 않습니다. 가능성 있는 경로로는 느리거나 큰 fetch를 강제하는 방법, 내부 서비스를 방해하는 요청 등이 있습니다.

5. 트리거 조건

  • Wanderer가 0.20.0보다 오래된 버전입니다.
  • 인스턴스가 PUBLIC_PRIVATE_INSTANCE를 true로 설정하지 않은 상태로 실행됩니다. 권고문 문구상 기본 또는 공개 구성이 이에 해당합니다. 기본 설치에서 기본값이 무엇인지는 확인하지 않았습니다.
  • 웹 컨테이너가 대상에 네트워크로 도달할 수 있습니다. 표준 멀티 컨테이너 배포에서는 데이터베이스와 검색 컨테이너가 여기에 포함됩니다.
  • 공격자가 HTTP로 웹 애플리케이션에 접근할 수 있습니다. 계정, 사용자 상호작용, 특별한 요청 복잡도는 필요하지 않습니다.

6. 패치 분석

실제 패치 diff는 확인하지 못했습니다. 커밋과 풀 리퀘스트는 CVE 참조에 나와 있습니다(커밋 c371337, PR #1104). 릴리스 노트는 수정을 해당 PR과 연결합니다. diff를 읽지 않았으므로 이 섹션은 개념 설명에 그칩니다. 아래 내용은 메인테이너가 실제로 한 일에 대한 설명이 아니라 일반적인 지침으로 받아들이십시오.

벤더의 changelog 항목은 이번 릴리스가 POST /api/v1/trail/download의 인증 없는 SSRF를 수정했다고 밝히며, 이 SSRF는 사용자가 제공한 URL을 통해 서버가 내부 네트워크 또는 클라우드 메타데이터 엔드포인트를 가져오도록 속일 수 있게 했다고 설명합니다. 제보자는 @guwu1017이며 GHSA-7vqq-mjjr-h9j5, PR #1104로 기록되어 있습니다.

이런 유형의 버그에 대한 수정은 보통 다음 지점 중 한 곳에서 흐름을 끊습니다.

  • fetch 이전: 해당 경로에 인증을 요구하거나, 허용 목록(allow-list)으로 허용되는 대상(스킴, 호스트, 포트)을 제한합니다.
  • 연결 시점: 호스트명을 해석한 뒤 사설, 루프백, 링크 로컬, 예약된 주소를 거부합니다. DNS 속임수나 리디렉션으로 우회되지 않도록 이 검사는 실제로 연결하는 주소에 대해 수행해야 합니다.
  • fetch 이후: 임의의 업스트림 응답 본문을 호출자에게 반환하지 않습니다.

이후 Wanderer 권고문 하나가 주의할 점을 보여 줍니다. 리터럴 주소만 검사하는 IP 필터는 내부 IPv4 주소를 내장한 IPv6 형식으로 우회될 수 있다는 것입니다(isPrivateOrReservedIP와 connectorIPAllowed는 리터럴 주소만 검사했습니다). 이는 이 CVE와는 별개의 문제입니다. 그래도 SSRF 필터가 주소를 정규화하고 실패 시 차단(fail closed)해야 하는 이유를 보여 줍니다.

7. 탐지·완화

즉시 조치

  • Wanderer를 0.20.0 이상으로 업그레이드하십시오. 벤더가 명시한 수정 버전입니다.
  • 바로 업그레이드할 수 없다면 인스턴스를 비공개 모드(PUBLIC_PRIVATE_INSTANCE=true)로 실행하는 것을 고려하십시오. 권고문 문구는 이 값이 true가 아닐 때만 해당 경로에 인증이 없음을 시사합니다. 벤더가 권장한 우회책으로 확인된 것은 아니므로 의존하기 전에 테스트하십시오.
  • 또는 패치할 때까지 리버스 프록시나 게이트웨이에서 POST /api/v1/trail/download에 대한 외부 접근을 차단하십시오. 이는 일반적인 방어 조치이며 서드파티 분석 글들도 같은 방법을 제안합니다.
  • 웹 컨테이너가 도달할 수 있는 범위를 제한하십시오. 네트워크 분리나 egress 규칙을 사용해 필요 없는 서비스에 연결하지 못하게 합니다.
  • 클라우드 호스트에서는 강화된 메타데이터 서비스 모드(예: AWS의 IMDSv2)를 적용하고 인스턴스 역할을 최소로 유지하십시오. 이는 이 취약점뿐 아니라 모든 SSRF의 피해를 줄여 줍니다.
  • 내부 네트워크에서 내부 서비스가 인증 없는 요청에 응답하는지 검토하십시오. 응답한다면 심층 방어로 거기에도 인증을 추가하십시오.

탐지

  • 웹 및 프록시 로그에서 낯선 클라이언트가 /api/v1/trail/download로 보낸 POST 요청을 검색하십시오. 특히 다운로드 기능을 공개적으로 사용하지 않는 인스턴스에서 주의하십시오.
  • 요청 본문을 기록한다면 url 값을 확인하십시오. 내부 서비스 이름, 사설 또는 루프백 주소, 링크 로컬 주소 같은 호스트명은 의심스럽습니다.
  • 웹 컨테이너에서 평소 접속하지 않는 내부 호스트로 나가는 연결을 확인하십시오. 여러 포트나 호스트에 대한 연결이 한꺼번에 몰리면 스캔을 시사합니다.
  • 해당 경로에서 5xx 응답이나 타임아웃이 반복되는지 관찰하십시오. 탐색이나 악용을 가리킬 수 있습니다.
  • 인스턴스가 취약한 버전인지 확인하십시오. 버전은 배포된 릴리스에서 확인할 수 있습니다.

격리된 실습(로컬 Docker 랩)

이 취약점은 인터넷과 격리된 로컬 Docker 랩에서만 재현하십시오. 랩에는 외부 네트워크 접속이나 클라우드 자격 증명이 필요 없습니다. 본인 소유가 아닌 시스템에는 테스트하지 마십시오.

  • compose 프로젝트를 두 개 사용하십시오. 하나는 0.20.0 이전 Wanderer, 다른 하나는 0.20.0 이상입니다.
  • 같은 사설 Docker 네트워크에 무해한 모의 내부 서비스를 두십시오. 예를 들어 고정된 표식을 반환하는 작은 컨테이너입니다. 실제 데이터나 실제 자격 증명은 사용하지 마십시오.
  • 버전 간 차이를 관찰하십시오. 서버가 모의 서비스에 접속하는지, 그리고 본문을 반환하는지 확인합니다.
  • 그다음 이전 버전에서 비공개 인스턴스 모드를 켜고 비교하십시오. 권고문 문구에서 도출한 임시 조치를 검증하는 것입니다.
  • 실제 패치 diff를 읽고 각 변경을 위 흐름의 단계에 대응시켜 보십시오.
  • 마지막으로 자신의 로그용 탐지 규칙을 작성하고, 랩 트래픽에 대해서만 테스트하십시오.

8. References

1. TL;DR

Wanderer is a self-hosted trail database. Before version 0.20.0, when PUBLIC_PRIVATE_INSTANCE is not set to true, the unauthenticated POST /api/v1/trail/download handler passes the attacker-controlled JSON url field directly to event.fetch() and returns the fetched response. The server therefore makes web requests for anyone who asks and hands back the answer. That includes requests to hosts only the server can reach. This allows requests to internal services such as db:8090 and search:7700, cloud metadata addresses, and other network destinations. The fix is in v0.20.0.

2. Flaw classification

ItemValue
Primary CWECWE-918, Server-Side Request Forgery (NVD and the GitHub advisory agree)
Attack vectorNetwork. The attacker sends an HTTP POST to a public API route. CVSS: AV:N/AC:L/PR:N/UI:N
ImpactConfidentiality High, Availability High, Integrity None, Scope Changed (CVSS 10.0). The NVD text lists exposure of returned data, internal network reconnaissance, and denial of service.
PrerequisitesWanderer older than 0.20.0, and PUBLIC_PRIVATE_INSTANCE not set to “true”. No account is needed.
Affected versionsVersions below 0.20.0. VulDB phrases this as “up to 0.19.x”.
Fixed version0.20.0

3. Root cause

An SSRF happens when a server fetches a URL that a client chose, and the server does not check where that URL points. Two design mistakes combine here.

  1. The destination is fully client-controlled. The POST handler in web/src/routes/api/v1/trail/download/+server.ts accepts a JSON body containing a url field. That value goes to the server-side event.fetch() call without validation. The advisory points to lines 37-54 of that file.
  2. The response is returned to the caller. The handler gives the fetched response back to the requester. This turns a blind request into a full read primitive. The attacker sees what the internal service said.

The handler also has no authentication by default. The advisory says unauthenticated users can access this endpoint as long as PUBLIC_PRIVATE_INSTANCE is not set to “true”.

The usual SSRF danger is the server’s network position. In a typical Docker deployment the web container can talk to backends that are not published to the internet. The advisory notes that these services are not exposed externally but are reachable from the web container. The database service (db, port 8090) and the search service (search, port 7700) are named in the NVD description. Because the request comes from inside the trust boundary, network-level protection does not stop it.

4. Exploit flow (conceptual)

  1. Find an instance. The attacker locates a Wanderer deployment that is not in private-instance mode.
  2. Send the request. The attacker sends a JSON body to the unauthenticated download route. The url field names an internal target instead of a trail file.
  3. Server-side fetch. The web application fetches that target from its own network position.
  4. Response reflection. The handler returns the fetched response to the attacker.
  5. Repeat. The attacker varies the target to map internal hostnames, ports, and services. Each reply, or the lack of one, reveals something about the internal network.
  1. attacker supplies url — unauthenticated JSON field
  2. server fetches target — from inside the network
  3. response returned to caller
  4. internal data exposure / recon / DoS
Conceptual flow — not an executable payload

What the attacker can gain

The advisory lists, among other uses, probing the internal Meilisearch service and the internal PocketBase API. The two example probes in the advisory are health-status endpoints, so the proven impact there is information disclosure. Cloud metadata endpoints are named in the NVD description. Where they exist, they can hold credentials, but that is deployment-dependent and was not confirmed for Wanderer specifically. The denial-of-service aspect comes from the NVD wording, and the public sources do not describe the mechanism. Plausible routes include forcing slow or large fetches, or requests that disrupt internal services.

5. Trigger conditions

  • Wanderer is older than 0.20.0.
  • The instance runs with PUBLIC_PRIVATE_INSTANCE not set to true. This is the case in the default or public configuration according to the advisory wording. I did not verify what the default is in a stock install.
  • The web container has network reachability to the targets. In a standard multi-container deployment this includes the database and search containers.
  • The attacker can reach the web application over HTTP. No account, no user interaction, and no special request complexity is needed.

6. Patch analysis

I could not retrieve the real patch diff. The commit and pull request are listed in the CVE references (commit c371337, and PR #1104). The release notes tie the fix to that PR. I have not read the diff, so this section is conceptual only. Treat the points below as general guidance, not a description of what the maintainers did.

The vendor’s changelog entry says the release fixed an unauthenticated SSRF in POST /api/v1/trail/download, which allowed the server to be tricked into fetching internal-network or cloud metadata endpoints via a user-supplied URL. Credit goes to @guwu1017 via GHSA-7vqq-mjjr-h9j5, PR #1104.

A fix for this class of bug normally breaks the flow at one of these points:

  • Before the fetch: require authentication for the route, or restrict the allowed destinations (scheme, host, port) with an allow-list.
  • At connection time: resolve the hostname and refuse private, loopback, link-local and reserved addresses. This check should run on the address actually dialed, so that DNS tricks and redirects do not bypass it.
  • After the fetch: stop returning arbitrary upstream response bodies to the caller.

One caution comes from a later Wanderer advisory. It shows that an IP filter which only inspects the literal address can be bypassed by IPv6 forms that embed an internal IPv4 address (isPrivateOrReservedIP and connectorIPAllowed only inspected the literal address). That is a separate issue, not this CVE. It still shows why SSRF filters need to normalize addresses and fail closed.

7. Detection & mitigation

Immediate actions

  • Upgrade Wanderer to 0.20.0 or later. This is the fixed version named by the vendor.
  • If you cannot upgrade right away, consider running the instance in private mode (PUBLIC_PRIVATE_INSTANCE=true). The advisory wording implies the route is only unauthenticated when that value is not true. This is not confirmed as a vendor-recommended workaround. Test it before relying on it.
  • Alternatively, block external access to POST /api/v1/trail/download at your reverse proxy or gateway until you have patched. This is a general defensive measure, and third-party write-ups suggest the same.
  • Limit what the web container can reach. Use network segmentation or egress rules so it cannot contact services it does not need.
  • On cloud hosts, enforce the hardened metadata service mode (for example IMDSv2 on AWS) and keep instance roles minimal. This reduces the damage of any SSRF, not just this one.
  • Review whether internal services respond to unauthenticated requests on the internal network. If they do, add authentication there as defense in depth.

Detection

  • Search web and proxy logs for POST requests to /api/v1/trail/download from unfamiliar clients, especially on instances that do not use the download feature publicly.
  • Look at the url values in request bodies if you log them. Hostnames such as internal service names, private or loopback addresses, and link-local addresses are suspicious.
  • Check outbound connections from the web container to internal hosts that it does not normally contact. Bursts of connections to many ports or hosts suggest scanning.
  • Watch for repeated 5xx responses or timeouts from that route, which may point to probing or abuse.
  • Check whether your instance is on a vulnerable version. The version is visible in the deployed release.

Isolated practice (local Docker lab)

Reproduce this only in a local Docker lab that is isolated from the internet. The lab needs no outbound network and no cloud credentials. Do not test against systems you do not own.

  • Use two compose projects: one with Wanderer before 0.20.0, one with 0.20.0 or later.
  • Put a harmless mock internal service on the same private Docker network, for example a small container that returns a fixed marker. Do not use real data or real credentials.
  • Observe the difference between versions: whether the server contacts the mock service, and whether it returns the body.
  • Then turn on private-instance mode in the old version and compare. This tests the interim measure from the advisory wording.
  • Read the actual patch diff and try to map each change to a step in the flow above.
  • Finish by writing a detection rule for your own logs, and test it against lab traffic only.

8. References