| タイトル | jishenghua jshERP <=3.6 Path Traversal |
|---|
| 説明 | A stored path traversal vulnerability in jshERP-boot allows an attacker to perform arbitrary file operations (delete) on the server. The vulnerability exists because the POST /addAccountHeadAndDetail endpoint accepts a fileName field within a JSON body without sanitization. This malicious string is persisted in the jsh_account_head database table. When a user subsequently triggers a deletion of the account head record via batchDeleteAccountHeadByIds, the application retrieves the stored path and passes it to SystemConfigService.deleteFileByPathList. This service uses the unsanitized path in Paths.get(), Files.copy(), and Files.delete(), enabling an attacker to traverse the file system using sequences like ../. |
|---|
| ソース | ⚠️ https://github.com/jishenghua/jshERP/issues/154 |
|---|
| ユーザー | Ana10gy (UID 93358) |
|---|
| 送信 | 2026年05月20日 04:39 (20 日 ago) |
|---|
| モデレーション | 2026年06月07日 11:22 (18 days later) |
|---|
| ステータス | 承諾済み |
|---|
| VulDBエントリ | 369087 [jishenghua jshERP 迄 3.6 addAccountHeadAndDetail Endpoint AccountHeadService.java fileName ディレクトリトラバーサル] |
|---|
| ポイント | 20 |
|---|