提交 #833656: jishenghua jshERP <=3.6 Path Traversal信息

标题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分 (22 日前)
管理2026-06-07 11時22分 (18 days later)
状态已接受
VulDB条目369087 [jishenghua jshERP 直到 3.6 addAccountHeadAndDetail Endpoint AccountHeadService.java fileName 目录遍历]
积分20

Do you need the next level of professionalism?

Upgrade your account now!