| Titre | FlowCI flow-core-x v1.23.01 Path Traversal |
|---|
| Description | flow-ci's LocalFileManager implementation constructs file paths with Paths.get(dir.toString(), fileName) and passes them directly to filesystem operations. The fileName parameter is not sanitized: there is no detection of .., no normalize() call, and no startsWith(base) boundary check. Java's Paths.get(a, b) preserves .. path components, so a filename such as ../../../../cve02_browser_escape.txt can escape the intended storage directory when the operating system resolves the path.
Five vulnerable sinks exist:
1. `exist()` — L56: `Paths.get(dir.toString(), fileName)` — traversal-aware existence check.
2. `save()` — L67: `Paths.get(dir.toString(), fileName)` — arbitrary file write.
3. `read()` — L75: `Paths.get(dir.toString(), fileName)` — arbitrary file read.
4. `remove(fileName, ...)` — L87: `Paths.get(dir.toString(), fileName)` — arbitrary file delete.
5. `remove(filePath)` — L94: `Paths.get(filePath)` — deletes a fully attacker-controlled path. |
|---|
| La source | ⚠️ https://glacier-tarsal-711.notion.site/Flow-ci-Path-Traversal-in-flow-ci-LocalFileManager-via-Unsanitized-fileName-Parameter-3f7b25e24b368031bf2cc0afd9166896 |
|---|
| Utilisateur | Zy0t1 (UID 100983) |
|---|
| Soumission | 13/10/2026 10:33 (il y a 26 jours) |
|---|
| Modérer | 07/11/2026 20:35 (25 days later) |
|---|
| Statut | Accepté |
|---|
| Entrée VulDB | 432650 [FlowCI flow-core-x jusqu’à 1.23.49 LocalFileManager LocalFileManager.java exist/save/read/remove fileName directory traversal] |
|---|
| Points | 17 |
|---|