| タイトル | p2r3 Convert 1.0.0 Path Traversal |
|---|
| 説明 |
A security vulnerability has been identified in p2r3/convert (version 1.0.0), specifically within the 'buildCache.js' script. The application implements a file server using the 'Bun.serve' API that is susceptible to a Path Traversal attack (CWE-22).
The vulnerability is rooted in the fetch handler of the Bun.serve instance, where the 'pathname' is extracted from the request URL and modified via a simple string replacement of the "/convert/" prefix. The resulting unsanitized string is then directly concatenated into a file system path: 'Bun.file(${__dirname}/dist/${path})'.
By providing a URL containing directory traversal sequences (e.g., '/convert/../../package.json'), a remote attacker can bypass the intended web root directory ('/dist') and read arbitrary files from the server's filesystem that the process has permissions to access. This leads to unauthorized information disclosure of sensitive project configuration or source code.
CWE: CWE-22 (Improper Limitation of a Pathname to a Restricted Directory)
Impact: High (Information Disclosure)
Exploitability: Remote / Network |
|---|
| ソース | ⚠️ https://github.com/Dave-gilmore-aus/security-advisories/blob/main/convert-advisory |
|---|
| ユーザー | davidgilmore (UID 96940) |
|---|
| 送信 | 2026年03月31日 07:41 (27 日 ago) |
|---|
| モデレーション | 2026年04月19日 21:23 (20 days later) |
|---|
| ステータス | 承諾済み |
|---|
| VulDBエントリ | 358270 [p2r3 convert 迄 6998584ace3e11db66dff0b423612a5cf91de75b API buildCache.js Bun.serve pathname ディレクトリトラバーサル] |
|---|
| ポイント | 20 |
|---|