| 제목 | 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. AM 04:39 (21 날 ago) |
|---|
| 모더레이션 | 2026. 06. 07. AM 11:22 (18 days later) |
|---|
| 상태 | 수락 |
|---|
| VulDB 항목 | 369087 [jishenghua jshERP 까지 3.6 addAccountHeadAndDetail Endpoint AccountHeadService.java fileName 디렉토리 순회] |
|---|
| 포인트들 | 20 |
|---|